美文网首页
Centos 安装Supervisor

Centos 安装Supervisor

作者: Chester_01e2 | 来源:发表于2017-09-28 19:06 被阅读0次
    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
    

    相关文章

      网友评论

          本文标题:Centos 安装Supervisor

          本文链接:https://www.haomeiwen.com/subject/wmyvextx.html