• centos7.5 安装supervisor



    1.安装supervisor:

    supervisor:要安装的软件的名称。
    supervisord:装好supervisor软件后,supervisord用于启动supervisor服务。
    supervisorctl:用于管理supervisor配置文件中program。

    # yum install -y supervisor
    # systemctl enable supervisord # 开机自启动
    # systemctl start supervisord # 启动supervisord服务

    # systemctl status supervisord # 查看supervisord服务状态
    # ps -ef|grep supervisord # 查看是否存在supervisord进程

    成功之后,就可以使用如下命令管理supervisor服务了

    # systemctl stop supervisord
    # systemctl start supervisord
    # systemctl status supervisord
    # systemctl reload supervisord
    # systemctl restart supervisord

    2.在 /etc/supervisord.conf 文件末尾加上:

    [include]
    files = /etc/supervisord.d/*.ini


    3。将supervisor配置为开机自启动服务:supervisor.service 上传到/usr/lib/systemd
    [Unit]
    Description=supervisor
    [Service]
    Type=forking
    ExecStart=/usr/bin/supervisord -c /etc/supervisord.conf
    ExecStop=/usr/bin/supervisorctl shutdown
    ExecReload=/usr/bin/supervisorctl reload
    KillMode=process
    Restart=on-failure
    RestartSec=1s
    [Install]
    WantedBy=multi-user.target

  • 相关阅读:
    第二阶段总结
    今日总结
    今日总结
    今日总结
    今日总结
    今日总结
    今日总结
    今日总结
    今日总结
    开学总结
  • 原文地址:https://www.cnblogs.com/csj007523/p/14209055.html
Copyright © 2020-2023  润新知