博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【云计算】使用supervisor管理Docker多进程-ntpd+uwsgi+nginx示例最佳实践
阅读量:4598 次
发布时间:2019-06-09

本文共 1973 字,大约阅读时间需要 6 分钟。

supervisor安装启动:

apt-get install supervisor -y# start supervisord nodaemon/usr/bin/supervisord --nodaemon

 

nginx示例:

[program:nginx]command = /usr/sbin/nginx -g 'daemon off;'process_name = %(program_name)sstopsignal = QUITautostart = true# startsecs = 30# startretries = 3autorestart = true# exitcodes = 0,1,2stdout_logfile_maxbytes = 10MBstdout_logfile_backups = 5stdout_logfile = /var/log/supervisor/%(program_name)s-stdout.log# stderr_logfile = /var/log/supervisor/%(program_name)s-stderr.logredirect_stderr = true

ntpd示例:

[program:ntpd]command = /usr/sbin/ntpd -dprocess_name = %(program_name)sstopsignal = QUITautostart = true# startsecs = 30# startretries = 3autorestart = true# exitcodes = 0,1,2stdout_logfile_maxbytes = 10MBstdout_logfile_backups = 5stdout_logfile = /var/log/supervisor/%(program_name)s-stdout.log# stderr_logfile = /var/log/supervisor/%(program_name)s-stderr.logredirect_stderr = true

uwsgi示例:

[program:uwsgi]command = uwsgi ${APP_PATH}/server-config/uwsgi/uwsgi.iniprocess_name = %(program_name)sstopsignal = QUITautostart = true# startsecs = 30# startretries = 3autorestart = true# exitcodes = 0,1,2stdout_logfile_maxbytes = 10MBstdout_logfile_backups = 5stdout_logfile = /var/log/supervisor/%(program_name)s-stdout.log# stderr_logfile = /var/log/supervisor/%(program_name)s-stderr.logredirect_stderr = true

 

参考资料:

supervisor 进程控制服务:

用supervisor管理nginx+uwsgi部署django项目:

nginx and supervisor setup in Ubuntu:

Nginx with Supervisor keep changing status b/w Running and Starting:

virtualenv 环境下 Django + Nginx + Gunicorn+ Supervisor 搭建 Python Web:

Dockerfile示例:

supervisor配置文件示例:

Docker官方示例:

Ubuntu14.04+Nginx+Uwsgi+Supervisor部署Django Web App:

supervisor工具使用:

supervisor安装配置与使用:

[supervisor] 使用小记(入门教程),supervisor小记:

Linux下进程管理工具Supervisor的安装配置和基本使用:

Supervisor重新加载配置启动新的进程:

Linux的NTP配置总结:

uwsgi配置参数详解:

 

MORE:

Supervisor 管理后台守护进程:

Supervisor的安装与使用入门:

Configuration File:

使用 supervisor 管理进程(配置文件解释):

 

 

转载于:https://www.cnblogs.com/junneyang/p/5338300.html

你可能感兴趣的文章
(待完成)qbxt2019.05 总结12 - 趣味题目 鹰蛋
查看>>
[2018/11/18] Java数据结构(2) 简单排序 冒泡排序 选择排序 插入排序
查看>>
关于WPF程序只运行一个实例的方法
查看>>
游标的使用
查看>>
图论:点分治
查看>>
mysql
查看>>
C/C++ 知识点---sizeof使用规则及陷阱分析(网摘)
查看>>
java小程序 示例
查看>>
前端开发在线小工具
查看>>
有关cookies使用方法
查看>>
Hadoop 使用Combiner提高Map/Reduce程序效率
查看>>
前言 转录组
查看>>
扫描图片怎么转换成文字
查看>>
easyui刷新渲染
查看>>
kindeditor 引用js架包问题
查看>>
POJ 1743 Musical Theme (后缀数组,求最长不重叠重复子串)(转)
查看>>
js中的delete
查看>>
centos 安装jenkins
查看>>
PAT 1054. 求平均值 (20)
查看>>
AX 2009 List类和Array类
查看>>