centos 6.7 搭建tornado + nginx + supervisor的方法(已经实践)
2016-12-29 16:13
441 查看
首先,本来不想写这篇博客了,但是我测试了很多网上的例子包括简书的,全不行,我总结原因是自己太笨,搞了俩个晚上,后来决定,自己还是写一篇记录下来,保证自己以后使用
python2.7.11
pip 9.0.1
nginx1.4.5
View Code
环境:
centos6.7 64python2.7.11
pip 9.0.1
nginx1.4.5
[program:python] command=python /opt/pythonweb/hello.py directory=/opt/pythonweb autostart=true ; start at supervisord start (default: true) startretries=3 ; max # of serial start failures when starting (default 3) autorestart=true ; when to restart if exited after running (def: unexpected) redirect_stderr=true ; redirect proc stderr to stdout (default false) stdout_logfile=/var/log/nginx.log ; stdout log path, NONE for none; default AUTO stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) stdout_logfile_backups=10 ; # of stdout logfile backups (default 10) stdout_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) stdout_events_enabled=false ; emit events on stdout writes (default false) stderr_logfile=/var/log/nginx_err.log ; stderr log path, NONE for none; default AUTO stderr_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) stderr_logfile_backups=10 ; # of stderr logfile backups (default 10) stderr_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0) stderr_events_enabled=false ; emit events on stderr writes (default false) user=root
View Code
supervisorctl start nginx # 启动 nginx supervisorctl start all # 启动所有进程 supervisorctl status # 查看进程状态
5.注意每次更新完supervisor以后一定要重启supervisor,ps -ef | grep supervisor ,,,kill
相关文章推荐
- Centos搭建Python+Nginx+Tornado+Mysql环境
- CentOS6.3搭建Nginx代理访问MongoDB GridFS图片资源(已经验证-不错)
- DigitalOcean上使用Tornado+MongoDB+Nginx+Supervisor+DnsPod快速搭建个人博客
- Centos搭建php+nginx+mysql+mongo出现的问题及解决方法
- CentOS上搭建Nginx+Mono运行asp.net环境的配置方法
- Centos搭建Python+Nginx+Tornado+Mysql环境[转载]
- 搭建docker内网私服的方法(docker-registry with nginx&ssl on centos)
- CentOS上搭建Nginx + Mono 运行 asp.net
- Centos Nginx + Svbversion配置安装方法分享
- centos安装nginx+mysql+php+fastcgi+memcache最简单方法
- CentOS 5.5安装Nginx、PHP(FastCGI)、MySQL --搭建LNMP环境安装Wordpress
- nginx搭建虚拟主机的配置文件方法
- CentOS上搭建Nginx + Mono 运行 asp.net
- 基于CentOS 5.4搭建nginx+php+spawn-fcgi+mysql高性能php平台
- CentOS上搭建Nginx + Mono 运行 asp.net
- CentOS 5.5安装Nginx、PHP(FastCGI)、MySQL --搭建LNMP环境安装Wordpress、Discuz
- 【CentOS】 Nginx+jdk+tomcat 环境搭建
- CentOS5.5安装Nginx、PHP(FastCGI)、MySQL --搭建LNMP环境安装wordpress
- CentOS上搭建Nginx + Mono 运行 asp.net
- CmsTop 大众版运行环境搭建 (CentOS+Nginx+PHP FastCGI)