• 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
    
    
    赵客缦胡缨,吴钩霜雪明。 银鞍照白马,飒沓如流星。
  • 相关阅读:
    vue 微信底部导航开始就隐藏
    复制内容到剪切板 兼容大部分手机浏览器
    复制内容到剪切板
    页面滚动到顶部 也可实现或底部或中部
    js判断当前是移动端还是ios端
    判断是否是微信浏览器打开
    vue 获取元素高度
    内容超出隐藏
    uni-app 动态修改标题栏按钮名称
    Docker 常用应用
  • 原文地址:https://www.cnblogs.com/boy215/p/10488680.html
Copyright © 2020-2023  润新知