美文网首页
supervisor使用问题1:unix:///var/run/

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

作者: andymilion | 来源:发表于2018-06-06 14:03 被阅读0次

在使用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 目录或者其他目录,避免被系统删除

相关文章

网友评论

      本文标题:supervisor使用问题1:unix:///var/run/

      本文链接:https://www.haomeiwen.com/subject/tiebsftx.html