Leif160519的blog Leif160519的blog

——————

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

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

1、打开配置文件

vim /etc/supervisord.conf

这里把所有的/tmp路径改掉:
/tmp/supervisor.sock改成 /var/run/supervisor.sock
/tmp/supervisord.log 改成 /var/log/supervisor.log
/tmp/supervisord.pid改成 /var/run/supervisor.pid
要不容易被linux自动清掉。

2、修改权限

sudo chmod 777 /var/run
sudo chmod 777 /var/log

如果没改,启动报错 IOError: [Errno 13] Permission denied: '/var/log/supervisord.log'

3、创建supervisor.sock

sudo touch /var/run/supervisor.sock
sudo chmod 777 /var/run/supervisor.sock

4、启动supervisord,注意stop之前的实例或杀死进程

systemctl restart supervisor

“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” – Tom Cargill

标  题解决unix:///tmp/supervisor.sock no such file的问题
作  者Leif160519
出  处https://github.icu/articles/2019/08/30/1567133851193.html
关于博主:坐标南京,运维工程师,如有问题探讨可以直接下方留言。
声援博主:如果您觉得文章对您有帮助,可以评论、订阅、收藏。您的鼓励是博主的最大动力!