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 297
ASCWH - supervisord https://ascwh.com/tag/supervisord/ zh-CN Thu, 21 Jul 2022 15:29:34 +0800 Thu, 21 Jul 2022 15:29:34 +0800 supervisor unix:///tmp/supervisor.sock no such file 问题 https://ascwh.com/400.html https://ascwh.com/400.html Thu, 21 Jul 2022 15:29:34 +0800 ASCWH 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,启动之前的实例或杀死进程

]]>
0 https://ascwh.com/400.html#comments https://ascwh.com/feed/tag/supervisord/