[ubuntu] apache ServerName 警告訊息

過去在 ubuntu 安裝完 apache,啟動時總是會出現以下這段訊息

apache2: Could not reliably determine the server’s fully qualified domain name, using Set the ‘ServerName’ directive globally to suppress this message


其實是 apache2 抓不到 hostname,因此我們正確的設定 hostname 就正常了

sudo hostname ubuntu.mydomain.com



Leave a Reply

Your email address will not be published. Required fields are marked *