如何检测和重启Apache和Lighttpd
作者: 出处: 更新时间:2007-10-25 责任编辑:
 
 

Append following line:

mo:2345:respawn:/usr/local/bin/monit -Ic /etc/monitrc

Now start monit:

# inittab -q

You can verify that monit is started from /var/log/message log file:

# tail -f /var/log/messageOutput:

Nov 21 04:39:21 server monit[8759]: Starting monit daemon Nov 21 04:39:21 server monit[8759]: Monit started

If lighttpd died, you will see something as follows in log file:

Nov 21 04:45:13 server monit[8759]: 'lighttpd' process is not running Nov 21 04:45:13 server monit[8759]: 'lighttpd' trying to restart Nov 21 04:45:13 server monit[8759]: 'lighttpd' start: /etc/init.d/lighttpd

You may use monit to monitor daemon processes or similar programs running on localhost or started from /etc/init.d/ location such as

=> Apache Web Server

=> SSH Server

=> Postfix/Sendmail MTA

=> MySQL etc


Further readings
monit man page
monit official web site and documenation

 
     
 
 
后退<<上一页 继续>>lighttpd
[上一页][第1页][第2页][第3页][第4页][第5页][第6页][下一页]
 
内容导航  
第1页如何检测和重启Apache.. 第2页如何检测和重启Apache..
第3页如何检测和重启Apache.. 第4页如何检测和重启Apache..
第5页如何检测和重启Apache.. 第6页lighttpd
上一篇 : lighttpd 安装过程 下一篇Lighttpd的安装配置(web..
 
  您要为所发表的言论的后果负责,请各位遵纪守法并注意文明用语
标题:  

[ 关于本站 ] [ 广告服务 ] [ 商务合作 ] [ 联系我们 ] [ 合作伙伴 ] [ 法律顾问 ] [ 网站地图 ]
千橡公司 京ICP证041489号 Copyright (c) 1997-2007 All Right Reserved.