zoukankan      html  css  js  c++  java
  • 安装Supervisor

    1.安装 

     1)wget https://pypi.python.org/packages/source/s/supervisor/supervisor-4.1.0.tar.gz
     2tar zxvf supervisor-4.1.0.tar.gz
     3)cd supervisor-4.1.0
     4)/usr/bin/python3.8 setup.py install

    2.开机启动脚本supervisord.service

    [Unit]
    Description=Process Monitoring and Control Daemon
    After=rc-local.service nss-user-lookup.target
    
    [Service]
    Type=forking
    ExecStart=/usr/local/bin/supervisord -c /usr/supervisor/supervisord.conf
    ExecStop=/usr/local/bin/supervisord shutdown
    ExecReload=/usr/local/bin/supervisord reload
    killMode=process
    Restart=on-failure
    RestartSec=42s
    
    [Install]
    WantedBy=multi-user.target

    其他问题可参考https://www.cnblogs.com/toutou/p/supervisor.html(第二种方式安装)

  • 相关阅读:
    u Calculate e
    Elevator
    骑士走棋盘
    Number Sequence
    老鼠走迷宫
    Let the Balloon Rise
    A+B Problem II
    Three-Color Flag
    Noldbach problem
    Almost Prime
  • 原文地址:https://www.cnblogs.com/gaobing/p/13599860.html
Copyright © 2011-2022 走看看