Apache2啟動(dòng)錯(cuò)誤Could not reliably determine the server's fully qualified domain name

錯(cuò)誤情況:

ah00558: apache2: could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. set the ‘servername’ directive globally to suppress this message?

?

出現(xiàn)以上情況只要修改一下Apache的配置文件即可:

在配置文件 apache2.conf里面加入一行

?ServerName localhost:80

?然后重啟Apache服務(wù)就可以了

sudo /etc/init.d/apache2 restart?

? 版權(quán)聲明
THE END
喜歡就支持一下吧
點(diǎn)贊15 分享