centos 6 系统安装 supervisor

centos 6 安装 supervisor 3.3.1
一、问题回顾
centos6.5安装supervisor,有很多种方法,但是有很多坑,为了以后不重复踩坑,这里记录一下。
1、如果用yum install supervisor, 默认安装的是2.1.9版本,2.x版本的问题很多,可以启动supervisord进程,但是使用supervisorctl命令会报这个错误:
error: <class 'socket.error'>, [Errno 2] No such file or directory: file: <string> line: 1
2、用pip install supervisor,默认装的是最新的4.0.3版本,但是centos6.5默认的只有python2.6,4.0.3的supervisor跑不起来,具体错误没有记录了,可以升级到python2.7,比较麻烦。
3、最终成功的方法:指定安装supervisor3.1.3,这个版本可以用python2.6,直接装了就能用。可以pip install supervisor==3.1.3或者easy_install supervisor==3.1.3
二、安装部署
安装pip
wget https://bootstrap.pypa.io/2.6/get-pip.py python get-pip.py
安装supervisor pip install supervisor==3.3.1
默认配置文件: echo_supervisord_conf > /etc/supervisord.conf
启动: supervisord -c /etc/supervisord.conf
三、参考文档
https://blog.csdn.net/wangweidong_1991/article/details/97109265


posted @ 2020-12-17 14:55  鬼子蒋  阅读(1386)  评论(0编辑  收藏  举报