NOFREE

神在细节之中

导航

Apache运行状态

前提: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/

 

posted on 2014-03-09 23:07  不叫花花白  阅读(190)  评论(0)    收藏  举报