慕粉220330908
2017-04-19 17:27
[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]
阿帕奇没法启动,也关不了,怎么办
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
80端口被占用了,没关掉。
Linux软件安装管理
80150 学习 · 275 问题
相似问题