supervisor使用问题1:unix:///var/run/

2018-06-06  本文已影响0人  andymilion

在使用supervisor时,使用如下命令启动

supervisord -c /etc/supervisord.conf

隔一段时间使用supervisorctl检查状态时发现如下报错

image.png

原因为配置文件中本地socket文件被写到tmp目录下,最终被系统定时清除了

[unix_http_server]
file=/tmp/supervisor.sock   ; the path to the socket file
;chmod=0700                 ; socket file mode (default 0700)
;chown=nobody:nogroup       ; socket file uid:gid owner
;username=user              ; default is no username (open server)
;password=123               ; default is no password (open server)

改为

[unix_http_server]
;file=/tmp/supervisor.sock   ; (the path to the socket file)
file=/var/run/supervisor.sock   ; 修改为 /var/run 目录或者其他目录,避免被系统删除
上一篇下一篇

猜你喜欢

热点阅读