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)s
stopsignal = QUIT
autostart = true
# startsecs = 30
# startretries = 3
autorestart = true
# exitcodes = 0,1,2
stdout_logfile_maxbytes = 10MB
stdout_logfile_backups = 5
stdout_logfile = /var/log/supervisor/%(program_name)s-stdout.log
# stderr_logfile = /var/log/supervisor/%(program_name)s-stderr.log
redirect_stderr = true
ntpd示例:
[program:ntpd]
command = /usr/sbin/ntpd -d
process_name = %(program_name)s
stopsignal = QUIT
autostart = true
# startsecs = 30
# startretries = 3
autorestart = true
# exitcodes = 0,1,2
stdout_logfile_maxbytes = 10MB
stdout_logfile_backups = 5
stdout_logfile = /var/log/supervisor/%(program_name)s-stdout.log
# stderr_logfile = /var/log/supervisor/%(program_name)s-stderr.log
redirect_stderr = true
uwsgi示例:
[program:uwsgi]
command = uwsgi ${APP_PATH}/server-config/uwsgi/uwsgi.ini
process_name = %(program_name)s
stopsignal = QUIT
autostart = true
# startsecs = 30
# startretries = 3
autorestart = true
# exitcodes = 0,1,2
stdout_logfile_maxbytes = 10MB
stdout_logfile_backups = 5
stdout_logfile = /var/log/supervisor/%(program_name)s-stdout.log
# stderr_logfile = /var/log/supervisor/%(program_name)s-stderr.log
redirect_stderr = true
参考资料:
supervisor 进程控制服务:http://www.litrin.net/2012/08/02/supervisor-%E8%BF%9B%E7%A8%8B%E6%8E%A7%E5%88%B6%E6%9C%8D%E5%8A%A1/
用supervisor管理nginx+uwsgi部署django项目:http://outofmemory.cn/code-snippet/35403/supervisor-manage-uwsgi-python-django-process
nginx and supervisor setup in Ubuntu:http://stackoverflow.com/questions/10716159/nginx-and-supervisor-setup-in-ubuntu
Nginx with Supervisor keep changing status b/w Running and Starting:http://stackoverflow.com/questions/23216819/nginx-with-supervisor-keep-changing-status-b-w-running-and-starting
virtualenv 环境下 Django + Nginx + Gunicorn+ Supervisor 搭建 Python Web:http://www.ituring.com.cn/article/201045?utm_source=tuicool
Dockerfile示例:https://hub.docker.com/r/samuelchen/base/~/dockerfile/
supervisor配置文件示例:https://git.tedomum.net/y0no/docker-shinken/tree/master/supervisor/conf.d
Docker官方示例:https://docs.docker.com/engine/admin/using_supervisord/
Ubuntu14.04+Nginx+Uwsgi+Supervisor部署Django Web App:https://elonbase.com//Archives/article/1
supervisor工具使用:http://blog.chinaunix.net/uid-1757778-id-3066399.html
supervisor安装配置与使用:http://www.2cto.com/os/201503/378878.html
[supervisor] 使用小记(入门教程),supervisor小记:http://www.bkjia.com/xtzh/984198.html
Linux下进程管理工具Supervisor的安装配置和基本使用:http://www.jb51.net/LINUXjishu/409428.html
Supervisor重新加载配置启动新的进程:http://www.codeweblog.com/supervisor%E9%87%8D%E6%96%B0%E5%8A%A0%E8%BD%BD%E9%85%8D%E7%BD%AE%E5%90%AF%E5%8A%A8%E6%96%B0%E7%9A%84%E8%BF%9B%E7%A8%8B/
Linux的NTP配置总结:http://www.cnblogs.com/kerrycode/archive/2015/08/20/4744804.html
ntpd使用 :http://blog.csdn.net/feifei_14119/article/details/51003086
原文:http://www.cnblogs.com/junneyang/p/5338300.html
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!