pip install --upgrade supervisorpython
https://pypi.python.org/pypi/supervisormysql
tar zxvf supervisor-3.0.tar.gzsql
cd supervisor-3.0api
python2.7 setup.py build服務器
python2.7 setup.py installpython2.7
須要依賴於meld3-1.0.0.tar.gz,聯網安裝,因爲所在機器沒法上網,故進行手動安裝meld。socket
參照上面方法再進行安裝meld,安裝完成以後再次進行install便可。測試
測試安裝是否成功:echo_supervisord_conf ui
配置文件:echo_supervisord_conf > /etc/supervisord.conf命令行
supervisord : supervisor的服務器端部分,啓動supervisor就是運行這個命令
supervisorctl:啓動supervisor的命令行窗口
啓動supervisord:
[root@typhoeus79 mysqlapi]# ps aux |grep super
root 15377 0.0 0.0 61268 788 pts/3 R+ 16:23 0:00 grep super
[root@typhoeus79 mysqlapi]# supervisord
Unlinking stale socket /var/tmp/supervisor.sock
[root@typhoeus79 mysqlapi]# ps aux |grep super
root 15458 0.0 0.0 147148 7976 ? Ss 16:23 0:00 /usr/bin/python /usr/bin/supervisord
root 15533 0.0 0.0 61268 792 pts/3 S+ 16:23 0:00 grep super