Linux下安装Supervisor的多种方法
一、安装
1、方法一:
pip install supervisor
1 #!/bin/bash 2 wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz 3 tar zxvf setuptools-0.6c11.tar.gz 4 cd setuptools-0.6c11 5 python setup.py build 6 python setup.py install 7 wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa33326" 8 tar -xzvf pip-1.5.4.tar.gz 9 cd pip-1.5.4 10 python setup.py install
2、方法二:
yum install python-setuptools
easy_install supervisor
3、方法三:
wget https://pypi.python.org/packages/source/s/supervisor/supervisor-3.1.3.tar.gz
tar zxvf supervisor-3.1.3.tar.gz
cd supervisor
python setup.py install
4、方法四:
yum install -y epel-release
yum install -y supervisor
二、组件说明
1、supervisord : 服务
2、supervisorctl:命令工具
三、启动服务并设置开机自动启动
systemctl start supervisord.service && systemctl enable supervisord.service
更多使用方法,请参考另一篇文章:
更多精彩文章请关注我们的微信公众号FocusDotCore: