apache服务可以使用mod_status模块进行监控,该模块在apache配置文件httpd.conf中表示为
LoadModule status_module modules/mod_status.so。
应把前面的#注释掉,来加载该模块。
按G跳转到配置文件的最后,添加
SetHandler server-status
Order Deny,Allow
Deny from nothing
Allow from all
ExtendedStatus On
下面就是该网页所显示的监控情况:
参数说明:
字段 说明
Server Version Apache 服务器的版本。
Server Built Apache 服务器编译安装的时间。
Current Time 目前的系统时间。
Restart Time Apache 重新启动的时间。
Parent Server Generation Apache 父程序 (parent process) 的世代编号,就是 httpd 接收到 SIGHUP 而重新启动的次数。
Server uptime Apache 启动后到现在经过的时间。
Total accesses 到目前为此 Apache 接收的联机数量及传输的数据量。
CPU Usage 目前 CPU 的使用情形。
<