安装:supervisord

git clone 源码安装

github地址:https://github.com/Supervisor/supervisor

获取两个依赖项,根据编译安装报错安装需要的依赖

  • 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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容