我supervisord
告诉我它在没有任何 HTTP 身份验证检查的情况下运行。
supervisor> maintail
2015-03-03 16:57:03,832 CRIT Server 'unix_http_server' running without any HTTP authentication checking
Run Code Online (Sandbox Code Playgroud)
虽然我无法在默认端口上打开它9001
。如何打开它以及如何启用 HTTP 身份验证检查?
unix_http_server
配置文件部分如下:
[unix_http_server]
file=/var/run/supervisor.sock
chmod=0770
chown=root:supervisor
Run Code Online (Sandbox Code Playgroud)
如果您希望 HTTP 服务器侦听 TCP 端口(而不是 Unix 域套接字),那么您需要inet_http_server
使用unix_http_server
.
文档:http ://supervisord.org/configuration.html#inet-http-server-section-settings
小智 5
你得到了
CRIT 服务器“unix_http_server”在没有任何 HTTP 身份验证检查的情况下运行
是因为没有为主管的 unix http 服务器设置用户名/密码。
将它们添加到supervisord.conf
's 中[unix_http_server]
:
[unix_http_server]
username = dummy
password = dummy
Run Code Online (Sandbox Code Playgroud)
但是当您使用supervisorctl
.
添加相同的项目[supervisorctl]
,你就可以开始了。
[supervisorctl]
username = dummy
password = dummy
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
18055 次 |
最近记录: |