supervisor.sock refused connection

问题:unix:///var/run/supervisor/supervisor.sock refused connection

解决方法:

注意事项:如果是用root启动的程序,执行以下命令时记得加sudo

1、supervisord -c /etc/supervisord.conf 启动supervisor服务;

2、如果发现提示如下错误(端口被占用):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.

3、查看哪个程序占用了端口:lsof -i : 9009,9009是端口号;

4、杀死该进程:kill -9 pid (程序的pid)

5、supervisord -c /etc/supervisord.conf启动supervisor服务,这个时候服务就启动起来了;

6、如果**/supervisor.sock no such file问题,那去找找/etc/supervisor.conf文件中的采用如下方法解决

你可能感兴趣的:(supervisor.sock refused connection)