"Cloud computing" uses supervisor to manage Docker multi-process-ntpd+uwsgi+nginx sample best practices

Source: Internet
Author: User
Tags dockerfile example

Supervisor Installation Start:

apt-Get Install supervisor-y# start Supervisord nodaemon/usr/bin/supervisord--nodaemon

Nginx Example:

[Program:nginx]command=/usr/sbin/nginx-g'daemon off;'Process_name= %(program_name) sstopsignal=Quitautostart=true# Startsecs= -# startretries=3AutoRestart=true# Exitcodes=0,1,2stdout_logfile_maxbytes=10mbstdout_logfile_backups=5Stdout_logfile= /var/log/supervisor/% (program_name) sstdout.log# Stderr_logfile= /var/log/supervisor/% (program_name) sStderr.logredirect_stderr=true

NTPD Example:

[Program:ntpd]command=/USR/SBIN/NTPD-Dprocess_name= %(program_name) sstopsignal=Quitautostart=true# Startsecs= -# startretries=3AutoRestart=true# Exitcodes=0,1,2stdout_logfile_maxbytes=10mbstdout_logfile_backups=5Stdout_logfile= /var/log/supervisor/% (program_name) sstdout.log# Stderr_logfile= /var/log/supervisor/% (program_name) sStderr.logredirect_stderr=true

UWSGI Example:

[Program:uwsgi]command= Uwsgi ${app_path}/server-config/uwsgi/Uwsgi.iniprocess_name= %(program_name) sstopsignal=Quitautostart=true# Startsecs= -# startretries=3AutoRestart=true# Exitcodes=0,1,2stdout_logfile_maxbytes=10mbstdout_logfile_backups=5Stdout_logfile= /var/log/supervisor/% (program_name) sstdout.log# Stderr_logfile= /var/log/supervisor/% (program_name) sStderr.logredirect_stderr=true

Resources:

Supervisor Process Control Service: 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/

Deploying a Django Project with Supervisor Management Nginx+uwsgi: 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

Django + Nginx + gunicorn+ Supervisor build Python web:http://www.ituring.com.cn/article/201045?utm_source= in virtualenv environment Tuicool

Dockerfile Example: https://hub.docker.com/r/samuelchen/base/~/dockerfile/

Supervisor Configuration File Example: HTTPS://GIT.TEDOMUM.NET/Y0NO/DOCKER-SHINKEN/TREE/MASTER/SUPERVISOR/CONF.D

Docker Official Example: https://docs.docker.com/engine/admin/using_supervisord/

Ubuntu14.04+nginx+uwsgi+supervisor Deploying the Django Web APP:HTTPS://ELONBASE.COM//ARCHIVES/ARTICLE/1

Supervisor Tool Use: http://blog.chinaunix.net/uid-1757778-id-3066399.html

Supervisor installation configuration and use: http://www.2cto.com/os/201503/378878.html

[Supervisor] Using small notes (Getting Started tutorial), Supervisor: http://www.bkjia.com/xtzh/984198.html

Installation configuration and basic use of the process Management tool supervisor under Linux: http://www.jb51.net/LINUXjishu/409428.html

Supervisor Reload configuration Start a new process: 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/

NTP configuration summary for Linux: http://www.cnblogs.com/kerrycode/archive/2015/08/20/4744804.html

NTPD use: http://blog.csdn.net/feifei_14119/article/details/51003086

"Cloud computing" uses supervisor to manage Docker multi-process-ntpd+uwsgi+nginx sample best practices

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.