服务器“unix_http_server”在没有任何 HTTP 身份验证检查的情况下运行

Max*_*mov 9 supervisord

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)

And*_*hen 5

如果您希望 HTTP 服务器侦听 TCP 端口(而不是 Unix 域套接字),那么您需要inet_http_server使用unix_http_server.

文档:http ://supervisord.org/configuration.html#inet-http-server-section-settings

  • 如果能为答案添加一点“色彩”就好了。对于我们这些主管新手来说,为什么这是一个严重错误?什么是 HTTP 身份验证检查以及为什么它更可取? (6认同)

小智 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)

更多信息:(#694)(#717