Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /webData/hua/www.ascwh.com/var/Typecho/Feed.php on line 367
ASCWH - supervisord 2022-07-21T15:29:34+08:00 Typecho https://ascwh.com/feed/atom/tag/supervisord/ <![CDATA[supervisor unix:///tmp/supervisor.sock no such file 问题]]> https://ascwh.com/400.html 2022-07-21T15:29:34+08:00 2022-07-21T15:29:34+08:00 ASCWH https://www.ascwh.com 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 /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,启动之前的实例或杀死进程

]]>