群晖Docker安装minio
前言MinIO 提供高性能、与 S3 兼容的对象存储系统,让你自己能够构建自己的云储存服务。在群晖上可通过 Docker 进行安装 MinIO。 由于众所周知的网络问题,需要更换 docker 国内源的请参考我的上一篇文章。 群辉 Docker 更换源 安装 下载 MinIO Docker 镜像,在注册表搜索...
群辉Docker更换源
添加国内源点击注册表,再点击设置 推荐 南京大学的源:https://docker.nju.edu.cn Docker 源12345678910111213141516171819202122232425262728293031阿里云(杭州) https://registry.cn-hangzhou.aliyuncs.com阿里云(上海) https://registry.cn-shanghai.aliyuncs.com阿里云(青岛) https://registry.cn-qingdao.aliyuncs.com阿里云(北京) https://registry.cn-beijing.aliyuncs.com阿里云(张家口) https://registry.cn-zhangjiakou.aliyuncs.com阿里云(呼和浩特) https://registry.cn-huhehaote.aliyuncs.com阿里云(乌兰察布) https://registry.cn-wulanchabu.aliyuncs.com阿里云(深圳) ...
【Python系列-01学习路线-04自动化运维】Flask云效流水线生产环境自动部署
Python 的安装与使用 参见无咎的另外一篇文章:Linux 生产环境安装 Python Supervisor 安装与使用 参见无咎的另外一篇文章:Supervisor 使用详解 项目流程配置以下所出现的 xxx 为项目名,不再额外申明 目录创建1234mkdir -p /opt/pysite/xxxmkdir -p /opt/pysite/env/xxxmkdir -p /opt/pysite/sockmkdir -p /opt/packages 项目 uwsgi 配置 文件名为 xxx_uwsgi.ini 文件放在代码根目录下 12345678910111213141516171819202122232425262728[uwsgi]#http=127.0.0.1:10001 #如果是http,通过proxy_pass http链接socket=127.0.0.1:10001 #如果是socket,通过nginx配置uwsgi_pass...
【Python系列-01学习路线-04自动化运维】Supervisor使用详解
Supervisor 简介Supervisor 是用 Python 开发的一套通用的进程管理程序,能将一个普通的命令行进程变为后台 daemon,并监控进程状态,异常退出时能自动重启。它是通过 fork/exec 的方式把这些被管理的进程当作 supervisor 的子进程来启动,这样只要在 supervisor 的配置文件中,把要管理的进程的可执行文件的路径写进去即可。也实现当子进程挂掉的时候,父进程可以准确获取子进程挂掉的信息的,可以选择是否自己启动和报警。supervisor 还提供了一个功能,可以为 supervisord 或者每个子进程,设置一个非 root 的 user,这个 user 就可以管理它对应的进程。 注:本文以 centos7 为例,supervisor 版本 3.4.0。 Supervisor 安装Centos 安装1yum install supervisor Debian/Ubuntu 可通过 apt 安装1apt-get install supervisor pip 安装1pip install supervisor easy_install...
【Python系列-01学习路线-01基础】12文件操作
待续 var isMobile = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i); var isEncrypt = document.getElementById('hexo-blog-encrypt'); var allowMobile = true; if (!isEncrypt && (!isMobile || (isMobile && allowMobile))) { try { var plugin = new ReadmorePlugin(); plugin.init({ "type": "hexo", "id":...
【Python系列-01学习路线-01基础】11异常处理
待续 var isMobile = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i); var isEncrypt = document.getElementById('hexo-blog-encrypt'); var allowMobile = true; if (!isEncrypt && (!isMobile || (isMobile && allowMobile))) { try { var plugin = new ReadmorePlugin(); plugin.init({ "type": "hexo", "id":...
【Python系列-01学习路线-01基础】10包
待续 var isMobile = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i); var isEncrypt = document.getElementById('hexo-blog-encrypt'); var allowMobile = true; if (!isEncrypt && (!isMobile || (isMobile && allowMobile))) { try { var plugin = new ReadmorePlugin(); plugin.init({ "type": "hexo", "id":...
【Python系列-01学习路线-01基础】09模块
待续 var isMobile = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i); var isEncrypt = document.getElementById('hexo-blog-encrypt'); var allowMobile = true; if (!isEncrypt && (!isMobile || (isMobile && allowMobile))) { try { var plugin = new ReadmorePlugin(); plugin.init({ "type": "hexo", "id":...
【Python系列-01学习路线-01基础】08面向对象编程
待续 var isMobile = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i); var isEncrypt = document.getElementById('hexo-blog-encrypt'); var allowMobile = true; if (!isEncrypt && (!isMobile || (isMobile && allowMobile))) { try { var plugin = new ReadmorePlugin(); plugin.init({ "type": "hexo", "id":...
【Python系列-01学习路线-01基础】07函数
待续 var isMobile = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i); var isEncrypt = document.getElementById('hexo-blog-encrypt'); var allowMobile = true; if (!isEncrypt && (!isMobile || (isMobile && allowMobile))) { try { var plugin = new ReadmorePlugin(); plugin.init({ "type": "hexo", "id":...