Jos*_*udi 7 unix unix-socket supervisord
使用Ubuntu 16.04 LTS部署我的python应用程序。配置完所有内容后,该应用将手动运行。我想使用主管自动执行,已经安装了主管并对其进行了配置。但是如果我运行:
主管配置文件:
; 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
Run Code Online (Sandbox Code Playgroud)
supervisorctl reread 我最终 unix:///tmp/supervisor.sock no such file
但是supervisord状态正在运行,
任何有想法的人,请。
小智 7
我有同样的问题。阅读man supervisorctl手册后,我意识到默认文件是/etc/supervisord.confubuntu 中的/etc/supervisor/supervisord.conf. 我使用以下方法创建了一个符号链接:
sudo ln -s /etc/supervisor/supervisord.conf /etc/supervisord.conf
Run Code Online (Sandbox Code Playgroud)
这解决了我的问题。
小智 5
出现此问题的原因:有多种原因,我发现我的主管由于断电而导致服务器连续停机而损坏。
解决办法:先把supervisor卸下来,然后重新安装。
脚步:
sudo apt-get remove supervisor
sudo apt-get remove --auto-remove supervisor
sudo apt-get purge supervisor
sudo apt-get purge --auto-remove supervisor
Run Code Online (Sandbox Code Playgroud)
上述链接可以在这里找到:
https://www.howtoinstall.co/en/ubuntu/trusty/supervisor?action=remove