debian自帶的apache安裝後,無論啟動還是關閉都會出現這樣的提示:
Starting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
這是由于apache不知道ServerName是什麼,需要手動定義
修改apache配置檔案:sudo gedit /etc/apache2/apache2.conf,在檔案最後設定:ServerName 127.0.0.1
重新開機apache一切正常