【云计算】使用supervisor管理Docker多进程-ntpd+uwsgi+nginx示例最佳实践

网友投稿 220 2022-10-24

【云计算】使用supervisor管理Docker多进程-ntpd+uwsgi+nginx示例最佳实践

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://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://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://2cto.com/os/201503/378878.html [supervisor] 使用小记(入门教程),supervisor小记:http://bkjia.com/xtzh/984198.html Linux下进程管理工具Supervisor的安装配置和基本使用:http://jb51.net/LINUXjishu/409428.html Supervisor重新加载配置启动新的进程:http://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/ uwsgi配置参数详解:http://heipark.iteye.com/blog/1847421   MORE: Supervisor的安装与使用入门:http://tuicool.com/articles/Ejm2u2 Configuration File:http://supervisord.org/configuration.html#program-x-section-settings 使用 supervisor 管理进程(配置文件解释):http://ttlsa.com/linux/using-supervisor-control-program/

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:数独答案生成器(数独答案生成器16)
下一篇:驾驶证核验(驾驶证审验内容)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~