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
Python项目部署后,将新项目添加到/etc/supervisor/conf.d/ 中,然后重新加载:
supervisord -c /etc/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
解决方案:
找到正在运行的supervisor.sock所在位置,命令行输入:
find / -name supervisor.sock
解绑:
unlink /run/supervisor/supervisor.sock
完成后再重新加载即可:
supervisord -c /etc/supervisord.conf
我的笔记