装过rpm包,在装源码包,结果源码包没法启动,关闭rpm包也失败,不知道怎么回事

来源:5-3 Linux中源码包安装过程(下)

慕粉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]

阿帕奇没法启动,也关不了,怎么办

写回答 关注

2回答

  • Atlas_Wu
    2017-04-30 15:10:34

    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

  • 暗夜行路0
    2017-04-20 14:51:01

    80端口被占用了,没关掉。

Linux软件安装管理

通过本课程了解Linux中的软件如何进行安装、卸载、升级等管理

80161 学习 · 275 问题

查看课程

相似问题