unix:///tmp/supervisor.sock 没有这样的文件

标签 unix supervisord unix-socket

使用 Ubuntu 16.04 LTS 部署我的 python 应用程序。配置完所有内容,应用程序正在手动运行。我想用主管自动化它,我已经安装了主管并配置了它。但如果我运行:

Supervisor 配置文件:

; supervisor config file

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

[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor            ; ('AUTO' child log dir, default $TEMP)

; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
; added by defining them in separate rpcinterface: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

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

; The [include] section can just contain the "files" setting.  This
; setting can list multiple files (separated by whitespace or
; newlines).  It can also contain wildcards.  The filenames are
; interpreted as relative to this file.  Included files *cannot*
; include files themselves.

[include]
files = /etc/supervisor/conf.d/*.conf

supervisorctl reread我最终得到unix:///tmp/supervisor.sock no such file

但是supervisord状态正在运行,

任何人有想法,请。

最佳答案

运行此命令sudo servicesupervisord restart解决了我的问题。

一些答案​​建议重新安装,这本质上是这样做的

关于unix:///tmp/supervisor.sock 没有这样的文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45957187/

相关文章:

C编程双向通信

BASH shell 用变量中的空格扩展参数

linux - 我如何保证我有一个进程始终启动并运行?

php - 未使用Supervisor D在Docker容器中填充Apache访问/错误日志

PHP Artisan 使用 MAMP 和 Unix Socket 迁移

Unix Shell 脚本 : sleep command not working

go - http.ServeFile 在服务器 golang 上返回 404 not found 错误

mysql - Heroku 中的 unix_socket 路径?

python - Django 尝试连接到错误的套接字

macos - MacOS X 中未定义宏 `__unix__`