再启动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
再次启动就正常了!
时间: 2024-10-25 22:09:40