<b>閱讀目錄</b>
<a href="http://www.cnblogs.com/kaituorensheng/p/5020793.html#_label0">介紹</a>
<a href="http://www.cnblogs.com/kaituorensheng/p/5020793.html#_label1">安裝</a>
<a href="http://www.cnblogs.com/kaituorensheng/p/5020793.html#_label2">生成預設配置檔案</a>
<a href="http://www.cnblogs.com/kaituorensheng/p/5020793.html#_label3">修改預設配置檔案</a>
<a href="http://www.cnblogs.com/kaituorensheng/p/5020793.html#_label4">啟動</a>
<a href="http://www.cnblogs.com/kaituorensheng/p/5020793.html#_label5">管理</a>
<a href="http://www.cnblogs.com/kaituorensheng/p/5020793.html#_label6">異常</a>
Supervisord是用Python實作的一款非常實用的程序管理工具
這裡用源碼
如需允許web界面和指令行通路,修改inet_http_server配置
未知 具體功能,需修複
修改程序
<a></a>
這裡test_http.py 位于directory(/home/admin/soft/supervisor-3.1.3)目錄下
test_http.py
指令管理
重新加載配置檔案
界面管理
![](https://img.laitimes.com/img/__Qf2AjLwojIjJCLyojI0JCLicmbw5CO3YDMzATO1AjMtcjMxIDMzAzMyQDMyETNxAjMtcjM5gDM08CXyETNxAjMvw1NykDOwQzLcd2bsJ2Lc12bj5ycn9Gbi52YuUTMwIzcldWYtl2Lc9CX6MHc0RHaiojIsJye.png)
1. Error: Another program is already listening on a port that one of our HTTP servers is configured to use. Shut this program down first before starting supervisord.
For help, use /home/admin/idcp-check/virtualenv/bin/supervisord -h
2. 啟動不起來
$sudo supervisorctl
create_roadnet_tasks3 FATAL Exited too quickly (process log may have details)
Check if supervisor <code>startsecs=0 #被監控程式啟動時持續時間</code>
3. 啟動不起來,日志提示不能用root使用者啟動
Running a worker with superuser privileges when the
worker accepts messages serialized with pickle is a very bad idea!
If you really want to continue then you have to set the C_FORCE_ROOT
environment variable (but please think about this before you do).
解決
4. 啟動後,用supervisorctl 檢視是出現異常:
1
<code>http:</code><code>//127.0.0.1:9001 refused connection</code>
解決,去掉注釋
2
3
4
<code>[inet_http_server] ; inet (TCP) server disabled </code><code>by</code> <code>default</code>
<code>port=127.0.0.1:9001 ; (ip_address:port specifier, *:port </code><code>for</code> <code>all iface)</code>
<code>#username=user ; (default is no username (open server))</code>
<code>#password=123 ; (default is no password (open server))</code>
本文轉自jihite部落格園部落格,原文連結:http://www.cnblogs.com/kaituorensheng/p/5020793.html,如需轉載請自行聯系原作者