[root@localhost httpd-2.2.21]# service apache start 報錯httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName 解決方法 [root@localhost httpd-2.2.21]# vim /usr/local/apache2/conf/httpd.conf 97行 #ServerName localhost 去掉
或者在你的hosts的檔案裡面添加一條對本機的解析