Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1848652
  • 博文数量: 293
  • 博客积分: 10127
  • 博客等级: 上将
  • 技术积分: 3029
  • 用 户 组: 普通用户
  • 注册时间: 2010-08-12 19:05
文章分类

全部博文(293)

文章存档

2011年(11)

2010年(282)

我的朋友

分类:

2010-11-26 09:07:43

文件:{HTTPServerInstallPath}/conf/ httpd.conf
找到以下段落,去掉前面的“#”号即可。
LoadModule status_module modules/mod_status.so

  ExtendedStatus On


  SetHandler server-status
配置完成,重启web服务器之后,使用“”查看。refresh=10表示刷新频率为秒钟。或使用“”查看汇总信息。
默认的httpd.conf相关描述:
# Allow server status reports generated by mod_status,
# with the URL of
# Change the ".example.com" to match your domain to enable.
#
#
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#

## Turn on extended status by default when mod_status is enabled
##
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#LoadModule status_module modules/mod_status.so

ExtendedStatus On

 
 
 
【一个样例如下】:
Apache Server Status for 192.168.0.51
Server Version: IBM_HTTP_Server
Server Built: Dec 4 2008 20:35:45
--------------------------------------------------------------------------------
Current Time: Tuesday, 13-Jul-2010 21:04:47 CST
Restart Time: Wednesday, 07-Jul-2010 19:51:24 CST
Parent Server Generation: 0
Server uptime: 6 days 1 hour 13 minutes 23 seconds
1 requests currently being processed, 49 idle workers
_________________________W________________________..............
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
Scoreboard Key:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"C" Closing connection, "L" Logging, "G" Gracefully finishing,
"I" Idle cleanup of worker, "." Open slot with no current process
PID Key:
 
   7156 in state: _ ,   7156 in state: _ ,   7156 in state: _
   7156 in state: _ ,   7156 in state: _ ,   7156 in state: _
   7156 in state: _ ,   7156 in state: _ ,   7156 in state: _
   7156 in state: _ ,   7156 in state: _ ,   7156 in state: _
   7156 in state: _ ,   7156 in state: _ ,   7156 in state: _
   7156 in state: _ ,   7156 in state: _ ,   7156 in state: _
   7156 in state: _ ,   7156 in state: _ ,   7156 in state: _
   7156 in state: _ ,   7156 in state: _ ,   7156 in state: _
   7156 in state: _ ,   7158 in state: W ,   7158 in state: _
   7158 in state: _ ,   7158 in state: _ ,   7158 in state: _
   7158 in state: _ ,   7158 in state: _ ,   7158 in state: _
   7158 in state: _ ,   7158 in state: _ ,   7158 in state: _
   7158 in state: _ ,   7158 in state: _ ,   7158 in state: _
   7158 in state: _ ,   7158 in state: _ ,   7158 in state: _
   7158 in state: _ ,   7158 in state: _ ,   7158 in state: _
   7158 in state: _ ,   7158 in state: _ ,   7158 in state: _
   7158 in state: _ ,   7158 in state: _ ,

--------------------------------------------------------------------------------
To obtain a full report with current status information you need to use the ExtendedStatus On directive.
--------------------------------------------------------------------------------
IBM_HTTP_Server Server at 192.168.0.51 Port 80
 
阅读(2729) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~