您需要启用Apache模块
mod_status(CentOs主Apache配置文件位于/etc/httpd/conf/httpd.conf)
LoadModule status_module modules/mod_status.so
# 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.
#
ExtendedStatus On
以及为此设置的一些访问权限(将XXX.XXX.XXX.XXX替换为您的IP – 这可以在与上面相同的配置文件中找到)
# Allow server status reports generated by mod_status,# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost 127.0.0.1 XXX.XXX.XXX.XXX
这将显示当前正在以here呈现的方式处理的pids和URL.