<Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from 192.168.149. </Location> 如果黑体部分的错误写成了“<Location /server-status”少写了一个 >。 apachectl configtest命令会检查到这个问题,输出如下: apachectl configtest Syntax error on line 918 of /etc/httpd/conf/httpd.conf: <Location> directive missing closing ‘>‘ 2 使用服务管理工具