裝過rpm包,在裝源碼包,結(jié)果源碼包沒法啟動,關(guān)閉rpm包也失敗,不知道怎么回事
[root@localhost apache2]# /usr/local/apache2/bin/apachectl start
httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[root@localhost apache2]# service httpd stop
Stopping httpd: ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?[FAILED]
阿帕奇沒法啟動,也關(guān)不了,怎么辦
2017-04-30
1. vi? /usr/local/apache/conf/httpd.conf(這是我安裝的路徑,因人而異),
2. 找到#ServerName www.example.com:80,
3. 在下面加上一行ServerName localhost:80?? , 保存退出
4. 重啟apache?:?? /usr/local/apache/bin/apachectl restart
2017-04-20
80端口被占用了,沒關(guān)掉。