Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux技術

解決 Apache 啟動時「Could not reliably determine the server's fully qualified domain name」錯誤

啟動 Apache 時遇到以下錯誤:

Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message httpd not running, trying to start

1、進入 Apache 的安裝目錄(依個人安裝情況而異):

cd /usr/local/apache24/conf

2、編輯 httpd.conf,搜尋「#ServerName」(搜尋方式:/你要搜尋的字串),並加入 ServerName localhost:80:

#ServerName www.example.com:80 ServerName localhost:80

3、重新啟動 Apache 即可:

/usr/local/apache24/bin/apachectl restart
Copyright © Linux教程網 All Rights Reserved