centos6.5安装supervisor

    centos6.5安装supervisor,有不少种方法,可是有不少坑,为了之后不重复踩坑,这里记录一下。python

1、若是用yum install supervisor, 默认安装的是2.1.9版本,2.x版本的问题不少,能够启动supervisord进程,可是使用supervisorctl命令会报这个错误:centos

error: <class 'socket.error'>, [Errno 2] No such file or directory: file: <string> line: 1python2.7

2、用pip install supervisor,默认装的是最新的4.0.3版本,可是centos6.5默认的只有python2.6,4.0.3的supervisor跑不起来,具体错误没有记录了,能够升级到python2.7,比较麻烦。socket

 

3、最终成功的方法:指定安装supervisor3.1.3,这个版本能够用python2.6,直接装了就能用。能够pip install supervisor==3.1.3或者easy_install supervisor==3.1.3进程

相关文章
相关标签/搜索