unix:///tmp/supervisor.sock no such file

1.打开配置文件

nano /etc/supervisord.conf

 2.修改后如下内容:

unix_http_server结点
[unix_http_server]
;file=/tmp/supervisor.sock   ; (the path to the socket file)
file=/var/run/supervisor.sock   ;
supervisord结点
[supervisord]
;logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile=/var/log/supervisord.log ;
supervisorctl结点
[supervisorctl]
;serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL  for a unix socket
serverurl=unix:///var/run/supervisor.sock ;

3.修改后保存文件

参考文档:

解决unix:///tmp/supervisor.sock no such file的问题

"unix:///tmp/supervisor.sock no such file" 错误处理 (亲测)

这种方法,我改了之后,并不管用,所以配置文件又改回去了

 

又试了这种方法:这里注意 supervisord.conf文件的路径(这回管用了)

执行命令报错:

[root@67 etc]# /usr/bin/python2 /usr/bin/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.
For help, use /usr/bin/supervisord -h

解决办法

Terminal上输入

ps -ef | grep supervisord

 获取所有supervisord正在运行的pid

root   2503  1  0 Nov19 ?  00:03:23 /usr/bin/python /usr/bin/supervisord
root   21337 2556  0 18:15 pts/8   00:00:00 grep --color=auto supervisord

 pid=2503

kill -s SIGTERM 2503  

之后在重新执行

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.

 

原文地址:https://www.cnblogs.com/kaerxifa/p/12744744.html