2017-08-30 24 views
2

私のpythonアプリケーションを配備するためにUbuntu 16.04 LTSを使用しています。すべてを設定し、アプリは手動で実行されています。私は監督者とそれを自動化したい、私は監督者をインストールしてそれを設定した。私が実行した場合でも:unix:///tmp/supervisor.sockこのようなファイルはありません

スーパーバイザの設定ファイル:

; 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ステータスが

誰でも、アイデアを下さい持つ、実行されています。

+0

スーパーバイザーサービスを再起動してみてください。また、 'echo_supervisord_conf'の出力をポストします。 –

+1

このQ **は、S.E.関連サイトhttp://unix.stackexchange.com(UnixおよびLinux)。あなたのQの下にある 'flag'リンクを使って、司会者にそれを移動するように依頼してください。 2つの異なるサイトに同じQを投稿しないでください。 ***投稿する前にhttp://stackoverflow.com/help/how-to-ask http://stackoverflow.com/help/dont-askとhttp://stackoverflow.com/help/mcveを読んでください。ここでもっとQs。がんばろう。 – shellter

答えて

0

最後に/etc/supervisor/conf.d/の設定ファイルをすべて削除したあと、supervisorを再インストールして解決しました。これがトリックでした。

関連する問題