在启动httpd的时候报错:

 

修改/etc/httpd/conf/httpd.conf 配置

去掉ServerName 前的#(或者手动添加ServerName localhost:80)然后重启httpd服务:

 

本文转载于传送阵