跨Linux服务器主机,可视化管理进程工具?

- 编辑:admin -

跨Linux服务器主机,可视化管理进程工具?

  简述 supervisord-monitor监管好几个linux服务器上supervisord进程管理的全部子进程、根据php开发,web方式管理进程,如运行、关掉、重新启动、查询子进程运作状况等。

   布署 supervisord-monitor 管理程序流程 1.打开supervisor的web管理端口号

   [inet_http_server]

   port=0.0.0.0:9001

   username=admin

   password=password

   对于supervisor怎样管理子进程,请参照我的另一篇:Linux进程后台运行方式?

   2.下载supervisord-monitor前面php文件:

   cd /usr/local/Nginx/html/

   git clone

   mv supervisord-monitor supervisord

   3.编写php配置文档,加上被监控主机

   vim /usr/local/nginx/html/supervisord/Application/config/supervisor.php

   $config['supervisor_servers'] = array(

   'AliYunWayGit' => array(

   'url' => '

   'port' => '9001',

   'username' => 'admin',

   'password' => 'password'

   ),

   'HomeTestWayGit' => array(

   'url' => '

   'port' => '9001',

   'username' => 'admin',

   'password' => 'password'

   ),

   ......

   );

   4.Nginx配置文件:

   server {

   listen 80;

   set $web_root /usr/local/nginx/html/supervisord/public_html;

   root $web_root;

   index index.php index.html index.htm;

   location / {

   try_files $uri $uri/ /index.php;

   }

   location ~ /*\.php$ {

   fastcgi_index index.php;

   fastcgi_param SCRIPT_FILENAME $web_root$fastcgi_script_name;

   fastcgi_param SCHEME $scheme;

   include fastcgi_params;

   fastcgi_pass 127.0.0.1:9000;

   }

   access_log /usr/local/nginx/logs/xxx.log;

   error_log /usr/local/nginx/logs/xxx_error.log;

   }

   5.重载nginx使配备起效

   nginx -s reload

   6.supervisord-monitor管理页面浏览