再启动Apache2时遇到如下问题:
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
解决办法:
这问题是沒有在 /etc/httpd/conf/httpd.conf 中設定 ServerName
vi /usr/local/apache2/conf/httpd.conf
最简单的,修改httpd.conf文件,增加:(大概在102行位置)
ServerName www.example.com:80
再次启动就正常了!
本文转自 linuxpp 51CTO博客,原文链接:http://blog.51cto.com/1439337369/1684836,如需转载请自行联系原作者