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

Personally I always install and configure monit on all boxes which are under my control.


Install monit under Debian or Ubuntu Linux

Use apt-get command to install monit

# apt-get install monitOR$ sudo apt-get install monit


Install monit under Red Hat enterprise Linux (source code installation)

Many distributions include monit. However monit is not included in official Red hat enterprise Linux. Just download monit source code from official web site using wget command:

# cd /opt

# wget http://www.tildeslash.com/monit/dist/monit-4.8.2.tar.gz

Untar monit

# tar -zcvf monit-4.8.2.tar.gz

# cd monit-4.8.2


Configure and compile monit:

# ./configure

# make



Install monit

# make install


Copy monit configuration file:

# cp monitrc /etc/monitrc

By default monit is located at /usr/local/bin/monit


How do I Configure monit?

monitrc is name of monit configuration file and it is by default located at /etc/monitrc location. However each distribution places file in different location: .

=> Source code installation : /etc/monitrc

=> Debian / Unentu Linux installation : /etc/monit/monitrc

Open monit configuration file and setup values as follows:

# vi /etc/monitrc

 
     
 
 
后退<<上一页 继续>>下一页
[上一页][第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.