安裝apache完成後,啓動日誌出錯。出錯信息是提示 Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName ,Address already in use: make_sock: could not bind to address 0.0.0.0:80。你可以用ip訪問(這個是個前提要素)。監聽沒有錯,就是/usr/sbin/apachectl -t 啓動報錯。
這個問題是:主機名更改了。很多人都是自動獲取IP,而且連接外網,所以不知不覺主機名更改爲bogon了。
這個方法是更改回來主機名。我上篇文章寫了,怎麼更改回來主機名。記得把DNS裏面的DNS
更改主機名不行了
看下面圖片: