V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  buran  ›  全部回复第 1 页 / 共 1 页
回复总数  2
@orzfly supervisor 启动 nginx 是这样的(从#18 楼的情况看,supervisor 已经启动了 nginx,下面那个 |-nginx--nginx 也要来 bind() 80 端口):

/etc/supervisor/conf.d/nginx.conf

[program:nginx]
command=/usr/local/nginx/sbin/nginx
directory=/root
user=root
stdout_logfile=/var/log/nginx.log
autostart=true
autorestart=true
redirect_stderr=true
stopsignal=QUIT
@loopback 这样看了,好像有两次系统自启动 nginx 的设置,没找到第二个 nginx 是哪里启动的

root@iY13xetfofdZ:~# pstree -n
init─┬─upstart-udev-br
├─...
├─...
├─supervisord─┬─python───python
│ └─nginx
├─nginx───nginx
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2847 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 12:38 · PVG 20:38 · LAX 05:38 · JFK 08:38
Developed with CodeLauncher
♥ Do have faith in what you're doing.