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文件夾權(quán)限改成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