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文件夾權(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
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容