由此无意中执行
一。# /usr/local/apache2/bin/apachectl status
/usr/local/apache2/bin/apachectl: line 94: lynx: command not found
报这种错误
解决:
#yum install lynx -y 即可
二。再次执行#/usr/local/apache2/bin/apachectl status
Forbidden
You don't have permission to access /server-status on this server.
_________________________________________________________________
Apache/2.2.9 (Unix) mod_jk2/2.0.4 Server at localhost Port 80
解决方法:
确保selinux为disable
#vi /usr/local/apache2/conf/extra/httpd-info.conf 改为如下
# # Get information about the requests being processed by the server # and the configuration of the server. # # Required modules: mod_status (for the server-status handler), # mod_info (for the server-info handler) # # 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. <Location /server-status> SetHandler server-status # Order deny,allow # Deny from all # Allow from </Location> # # 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 # # Allow remote server configuration reports, with the URL of # http://servername/server-info (requires that mod_info.c be loaded). # Change the ".example.com" to match your domain to enable. # <Location /server-info> SetHandler server-info # Order deny,allow # Deny from all # Allow from </Location>