wangchengyue / studygit

about the git project
0 stars 0 forks source link

supervisor python : Supervisorctl - Refused connection (even after specifying path -c) #3

Open wangchengyue opened 3 years ago

wangchengyue commented 3 years ago

执行命令:supervisorctl status 会出现 9001 :refused connection的错误提示: 查看了文档的配置,supervisor默认监听的sock,在配置文件中修改即可, 打开配置文件supervisor.conf,有三处的配置文件需要注意修改,修改的地方如下:

1.
[inet_http_server]         
port=127.0.0.1:9001
2.
[supervisorctl]
serverurl=http://127.0.0.1:9001
3.
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

修改完成以后,重启服务,我这边就OK了