通过谷歌搜索后大家都说是修改 httpd.conf文件,把其中到 #ServerName的注释去掉即可。 但是发现不行 把ServerName 127.0.0.1:80加入httpd.conf保存,重启httpd服务,成功。