apache啟動(dòng)報(bào)錯(cuò):httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName解決辦法
2016-11-29 07:54:0613191
情況說(shuō)明:使用新搭建環(huán)境配置yum 了一個(gè)apache,配置多個(gè)虛擬主機(jī)以后,啟動(dòng)報(bào)錯(cuò):httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName 當(dāng)然這個(gè)報(bào)錯(cuò)并不影響我們使用,只是有報(bào)錯(cuò)肯定看著不舒服。
下邊說(shuō)下解決辦法:
vi /etc/httpd/conf/httpd.conf 配置文件找個(gè)位置加入一行代碼 ServerName localhost:80 重啟httpd,問(wèn)題解決。