supervisord -c /root/recreation_project/supervisord.conf启动监控命令
之后如果要是报错
Error: 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.
For help, use /usr/bin/supervisord -h
说明有端口被占用了, 这是后的解决方案终端输入
ps -ef | grep supervisord
获取所有supervisord正在运行的pid
root 1299 1 0 Jun15 ? 00:02:12 /usr/bin/python /usr/bin/supervisord -c supervisord.conf
root 29848 29291 0 15:09 pts/0 00:00:00 grep --color=auto supervisord
pid=1299 终端使用命令
kill -9 1299
之后在重新执行
supervisord -c /root/recreation_project/supervisord.conf
ok, 启动成功

本文介绍了解决Supervisor启动时遇到端口被占用错误的方法。通过查找并杀死占用端口的进程,确保Supervisor能够正常启动。适用于遇到端口冲突问题的开发者。
1606

被折叠的 条评论
为什么被折叠?



