zoukankan      html  css  js  c++  java
  • centos7安装supervisor

    
    安装supervisor 
    
    cd /root/tools/
    wget http://pnxcvm0bq.bkt.clouddn.com/get-pip.py
    
    python get-pip.py
    
    pip install supervisor
    
    mkdir  /home/heron/supervisor && cd /home/heron/supervisor && mkdir bin conf log
    
    cp  /usr/bin/supervisor*  /home/heron/supervisor/bin/
    
    echo_supervisord_conf > /home/heron/supervisor/conf/supervisord.conf
    
    sed -i "/chown/achown=heron:heron         ; socket file uid:gid owner" /home/heron/supervisor/conf/supervisord.conf
    
    sed  -i  "s/tmp/home/heron/supervisor/g" /home/heron/supervisor/conf/supervisord.conf
    
    echo "python /home/heron/supervisor/bin/supervisorctl -c /home/heron/supervisor/conf/supervisord.conf $1 $2" > /home/heron/superctl
    
    chmod +x /home/heron/superctl
    
    python /home/heron/supervisor/bin/supervisord -c /home/heron/supervisor/conf/supervisord.conf
    
    chown -R heron.heron /home/heron
    
    
    ##设置开机启动
    cat >> /lib/systemd/system/supervisord.service << EOF
    [Unit]
    Description=Process Monitoring and Control Daemon
    After=rc-local.service
    
    [Service]
    Type=forking
    ExecStart=/usr/bin/python /home/heron/supervisor/bin/supervisord -c /home/heron/supervisor/conf/supervisord.conf
    SysVStartPriority=99
    
    [Install]
    WantedBy=multi-user.target
    EOF
    
    chmod +x /lib/systemd/system/supervisord.service
    systemctl enable supervisord
    
    
    赵客缦胡缨,吴钩霜雪明。 银鞍照白马,飒沓如流星。
  • 相关阅读:
    轮播图
    原生js实现分页效果(带实例)
    mint-ui Toast icon 图标
    阮小二买彩票
    js事件冒泡和事件捕捉
    html,css,js加载顺序
    单调栈-哈希表-768. 最多能完成排序的块 II
    同余问题-三整除系列
    动态规划-区间dp-单调栈-1130. 叶值的最小代价生成树
    动态规划-1Ddp-983. 最低票价
  • 原文地址:https://www.cnblogs.com/boy215/p/10488680.html
Copyright © 2011-2022 走看看