Supervise相关操作命令
2017-06-30 10:12:11    2    0    0
alen

supervisord : supervisor的服务器端部分,启动supervisor就是运行这个命令

supervisorctl:启动supervisor的命令行窗口。

安装(Centos):

  1. # yum install python-setuptools
  2. # easy_install supervisor
  3. 如果easy_install不好使就从官方下载:
  4. 然后通过python安装:
  5. # tar zxf supervisor-3.1.3.tar.gz
  6. # cd supervisor
  7. # python setup.py install
echo_supervisord_conf > /www/wdlinux/supervisord.conf

运行命令:

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

supervisorctl //打开命令行

  1. [root @iZ2365j7l5bZ  bin]# supervisorctl status   
  2. bandwidth                        RUNNING   pid  2423 , uptime  0 : 06 : 35   
  3. [root @iZ2365j7l5bZ  bin]# supervisorctl help   
  4.   
  5. default  commands (type help <topic>):   
  6. =====================================   
  7. add    clear  fg        open  quit    remove  restart   start   stop  update    
  8. avail  exit   maintail  pid   reload  reread  shutdown  status  tail  version  

ctl中: help //查看命令

ctl中: status //查看状态

另外有一个坑需要注意:如果修改了 /etc/supervisord.conf ,需要执行 supervisorctl reload 来重新加载配置文件,否则不会生效。。。

Pre: mysql优化

Next: No Post

2
Sign in to leave a comment.
No Leanote account? Sign up now.
0 comments
Table of content