Centos 安装Supervisor

centos 6 将Python2.6更新到2.7
yum groupinstall -y 'development tools'
yum install -y zlib-devel bzip2-devel openssl-devel xz-libs wget
wget http://www.python.org/ftp/python/2.7.14/Python-2.7.14.tar.xz
cd Python-2.7.14
./configure
make && make install
安装pip

curl https://bootstrap.pypa.io/get-pip.py | python2.7 -

安装Supervisor
pip install supervisor
echo_supervisord_conf > /etc/supervisord.conf
mkdir /etc/supervisord
#把supervisord文件夹权限改成755

vi /etc/supervisord.conf
# 把下面的这两行的注释去掉,如果没有加上即可。
[include]
files = /etc/supervisord/*.conf

wget https://raw.githubusercontent.com/Supervisor/initscripts/master/redhat-init-mingalevme -O /etc/init.d/supervisord
chmod +x /etc/init.d/supervisord
chkconfig --add supervisord
chkconfig --level 2345 supervisord on
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容