您当前的位置: 首页 >  linux

罗四强

暂无认证

  • 3浏览

    0关注

    497博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Linux 启动 Apache 时报错:(98)Address already in use: make_sock: could not bind to add

罗四强 发布时间:2020-06-28 15:21:40 ,浏览量:3

 

问题描述:

启动 Apache 时报错:

[root@localhost sh]# service httpd start
Starting httpd: 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
                        
问题分析:启动apache时,apache配置文件默认使用的80端口,被其他程序所占用。
解决方法1:查询占用 80 端口的进程,然后杀掉该进程:

查询80端口占用的进程
[root@localhost sh]# netstat -tulnp | grep ":80"
tcp        0  
关注
打赏
1625533955
查看更多评论
立即登录/注册

微信扫码登录

0.1472s