git clone 源碼安裝
github地址:https://github.com/Supervisor/supervisor
獲取兩個(gè)依賴(lài)項(xiàng)券时,根據(jù)編譯安裝報(bào)錯(cuò)安裝需要的依賴(lài)
- setuptools(最新)來(lái)自https://pypi.org/pypi/setuptools/。
- meld3(最新)來(lái)自https://pypi.org/pypi/meld3/喂饥。
- meld3 安裝
wget https://files.pythonhosted.org/packages/45/a0/317c6422b26c12fe0161e936fc35f36552069ba8e6f7ecbd99bbffe32a5f/meld3-1.0.2.tar.gz
tar zxvf meld3-1.0.2.tar.gz
cd meld3-1.0.2
/usr/local/Python3.6/bin/python3.6 setup.py install
cd ..
rm -rf meld3-1.0.2
rm -rf meld3-1.0.2.tar.gz
開(kāi)始安裝
wget https://github.com/Supervisor/supervisor/archive/3.3.4.zip
unzip 3.3.4.zip
cd supervisor-3.3.4
python setup.py install
生成配置文件
mkdir -p /usr/local/supervisor/{etc,files}
cp /usr/local/Python3.6/bin/supervisor* /usr/local/supervisor
# cp /usr/local/bin/supervisor* /usr/local/supervisor (pip安裝使用此命令)
echo_supervisord_conf > /usr/local/supervisor/etc/supervisord.conf
配置文件內(nèi)容參考連接:http://supervisord.org/configuration.html#unix-http-server-section-settings
啟動(dòng)服務(wù)
/usr/local/supervisor/supervisord -c /usr/local/supervisor/etc/supervisord.conf
supervisord 命令選項(xiàng)使用參考連接:http://supervisord.org/running.html#supervisord-command-line-options
supervisorctl 命令選項(xiàng)使用參考連接:http://supervisord.org/running.html#running-supervisorctl