前提:apache加载了mod_status模块
/usr/local/apache2/bin$ ./apachectl -l|grep sta
mod_status.c
apache2/conf/httpd.conf配置
(其中my-server-status可自由设定,deny/allow最好限制为特定IP可访问:)
ExtendedStatus On
<Location /my-server-status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow from all
</Location>
前端URL访问
/my-server-status?auto&refresh=N
可选参数:refresh=N:设置多久自动刷新一次
可选参数:auto:生产机器可以读状态
更多请访问
http://zhumeng8337797.blog.163.com/blog/static/100768914201282731734663/
原文:http://www.cnblogs.com/nofree/p/3590884.html