[踩坑] 终端执行 systemctl start supervisord

踩坑教训 · 03-15

今天调整生产环境 supervisord 配置 , 启动 inet_http_server 配置

# systemctl restart supervisord

我在重启服务器前 , 增加了一些配置在 /etc/supervisord.d/. 执行后抛错如下 :

Job for supervisord.service failed because the control process exited with error code. See "systemctl status supervisord.service" and "journalctl -xe" for details.

报错了 尝试

# systemctl start supervisord 

[supervisord.d] # /usr/bin/supervisord -c/etc/supervisord.conf
ror: Another program is already listening on a port that one of our HTTP servers is configured to use. Shut this program down first before starting supervisord.
help, use /usr/bin/supervisord -h

总之就是各种抛错 : 上网搜了下些都不靠谱, 查进程或者其他方式都不太对.

将新增加的配置移走后在尝试重启成功.

问题就出在 使用 systemctl 重启服务时, 不要让其有不确定的配置.

重启后, 在新增配置, 报错 日志目录不存在, 这时候创下下目录, 在 update 就ok 了

Supervisor
Theme Jasmine by Kent Liao