主管套接字错误:取消链接陈旧套接字 /tmp/supervisor.sock

Hei*_*inz 2 sockets shared-hosting unlink supervisord laravel

我在共享 Debian 服务器上安装了Supervisor 。当我运行时: supervisord -c supervisord.conf 我不断收到此错误,直到我杀死它:Unlinking stale socket /tmp/supervisor.sock
当我运行时supervisorctl status,我得到:
unix:///tmp/supervisor.sock no such file
我的supervisord.conf 文件是这样的(我没有更改任何内容):

[unix_http_server]
file=/tmp/supervisor.sock     ; (the path to the socket file)
;chmod=0700                 ; socket file mode (default 0700)

[supervisord]
logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB        ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10           ; (num of main logfile rotation backups;default 10)
loglevel=info                ; (log level;default info; others: debug,warn,trace)
pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
nodaemon=false               ; (start in foreground if true;default false)
minfds=1024                  ; (min. avail startup file descriptors;default 1024)
minprocs=200                 ; (min. avail process descriptors;default 200)

[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[supervisorctl]
serverurl=unix:///tmp/supervisor.sock   ; use a unix:// URL  for a unix socket

[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /path/to/app/artisan queue:work  --sleep=3 --tries=3
autostart=true
autorestart=true
;user=
numprocs=8
redirect_stderr=true
stdout_logfile= /path/to/app/worker.log
Run Code Online (Sandbox Code Playgroud)

当我 cd 到 /tmp 查找套接字文件时,套接字如下所示: supervisor.sock.824804
在我运行命令后,服务器会以某种方式随机生成六位数字supervisord -c supervisord.conf我是否必须在supervisord.config文件中考虑这个六位数字?既然它是随机生成的,我该如何做到这一点?我已经在macOS Mojave上安装并运行了Supervisor,没有出现任何问题,并且套接字文件只是像supervisor.sock 一样被锁定。提前感谢您的任何帮助和建议!