启动httpd报错:

service httpd start

Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 61.191.206.4 for ServerName

在网上大多数解决办法是去掉配置文件中ServerName前面的#,我发生的这种情况去掉就不行,重启之后依然打不开页面,而且重启仍旧报错。

解决办法:

修改ServerName localhost:80 为ServewName 127.0.0.1:80重启之后打开浏览器输入你虚拟机linux的ip地址救能看到apache的测试页面