伺服器「unix_http_server」在沒有任何 HTTP 驗證檢查的情況下執行

伺服器「unix_http_server」在沒有任何 HTTP 驗證檢查的情況下執行

supervisord告訴我,它正在運行,沒有任何 HTTP 身份驗證檢查。

supervisor> maintail
2015-03-03 16:57:03,832 CRIT Server 'unix_http_server' running without any HTTP authentication checking

雖然我無法在預設連接埠上打開它9001。如何開啟以及如何啟用HTTP認證檢查?

unix_http_server設定檔部分如下:

[unix_http_server]
file=/var/run/supervisor.sock
chmod=0770
chown=root:supervisor

答案1

如果您希望 HTTP 伺服器偵聽 TCP 連接埠(而不是 Unix 網域套接字),那麼您需要inet_http_server使用unix_http_server.

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

答案2

你得到了

CRIT 伺服器「unix_http_server」在沒有任何 HTTP 驗證檢查的情況下執行

是因為沒有為supervisor的unix http伺服器設定使用者名稱/密碼。

將它們添加到supervisord.conf's中[unix_http_server]

[unix_http_server]
username = dummy
password = dummy

但當您使用 時,系統會要求您輸入使用者名稱/密碼supervisorctl
添加相同的項目[supervisorctl]即可。

[supervisorctl]
username = dummy
password = dummy

更多資訊: (第694章) (第717章

相關內容