啟動 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
啟動 Apache 時出現「Could not determine the server's fully qualified domain name」
Linux 手動升級 Glibc 2.14:完整流程與常見坑點整理
「xxx is not in the sudoers file」怎麼修
Ubuntu 出現 could not initialize the package information 的解法
解決 Apache 啟動錯誤:Could not reliably determine the server's fully qualified domain name
httpd: Could not determine the server's fully qualified domain name