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自动清掉。
sudo chmod 777 /var/run
sudo chmod 777 /var/log
如果没改,启动报错 IOError: [Errno 13] Permission denied: '/var/log/supervisord.log'
sudo touch /var/run/supervisor.sock
sudo chmod 777 /var/run/supervisor.sock
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的问题