git clone 源码安装
github地址:https://github.com/Supervisor/supervisor
获取两个依赖项,根据编译安装报错安装需要的依赖
- setuptools(最新)来自https://pypi.org/pypi/setuptools/。
- meld3(最新)来自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
开始安装
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
配置文件内容参考连接:http://supervisord.org/configuration.html#unix-http-server-section-settings
启动服务
/usr/local/supervisor/supervisord -c /usr/local/supervisor/etc/supervisord.conf
supervisord 命令选项使用参考连接:http://supervisord.org/running.html#supervisord-command-line-options
supervisorctl 命令选项使用参考连接:http://supervisord.org/running.html#running-supervisorctl
网友评论