linux 下的进程管理工具 supervisor

百般思念 提交于 2019-11-26 11:35:19

在linux下监控进程:

    1)yum install python-setuptools   linux下的python安装工具

    2)easy_install supervisor     安装supervisor     

    3)测试安装是否成功:#echo_supervisord_conf

    4)创建主配文件supervisord.conf

    #echo_supervisord_conf > /etc/supervisord.conf

 

   命令:

      启动:supervisord -c /etc/supervisord.conf

      关闭进程:  supervisorctl shutdown

      查看进程状态:supervisorctl

     

      一般来说,我们会有好多个进程需要监控,这时候就需要再配置文件supervisord.conf里面进行配置,具体如下:

    vi  /etc/supervisord.conf 找到program进行配置,如下我配置了三个进程gjs1、he、gjs22

    

   查看进程状态:

  

     ok!

转载于:https://www.cnblogs.com/GuoJiaSheng/p/5239384.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!