Address already in use: make_sock: could not bind to address 0.0.0.0:80

显示:80端口的某些进程还是存在的,

可以用 ps -ef | grep httpd

查看进程,然后Kill -9 进程号  杀死进程,

如果没有可能是端口冲突

可以用netstat -nat|grep -i "80"|wc -l  查看有多少个80端口

然后查看netstat -nat|grep -i "80"

终端输入:

find / -name ports.conf

/etc/apache2/ports.conf

输入:

vim ‘/etc/apache2/ports.conf‘

键入‘i’即可修改,

将listen 80 这一句注释掉

按‘Esc’退出编辑状态

按‘:wq’,保存并退出(‘:q’不保存退出,‘:q!’不保存强制退出,‘:wq!’强制保存退出)

输入:

sudo /etc/init.d/apache2 start 即可。

当httpd.conf和ports.conf中都有listen 80时可能有效,加载时会冲突。

时间: 2024-08-08 01:13:02

Address already in use: make_sock: could not bind to address 0.0.0.0:80的相关文章

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

1. 启动 Apache 时报错: [[email protected] 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 bi

apache启动报错(98)Address already in use: make_sock: could not bind to address [::]:80

# /usr/local/apache2/bin/apachectl start Starting httpd: (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:80no listening sockets available, shutting downU

(98)Address already in use: make_sock: could not bind to address 80 [resolved] (2012-10-11 09:04)

以前遇到一个问题: sudo /etc/init.d/apache2 start * Starting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName (98)Address already in use: make_sock: could not bind to address 0.0

(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80

问题说明80端口被占用,用netstat -nlp |grep :80命令看看有什么进程占用了80端口,发现是httpd进程. 没想到安装了两个apache,我安装apache2.4的时候删除了2.2的apache啊, 可能是安装php memcache扩展的时候莫名其妙的安装了上了. 总之要卸载它 rpm -qa|grep -i httpd rpm -e --nodeps httpd-2.2.15-59.el6.centos.x86_64 rpm -e --nodeps httpd-tools

apache启动报错(98)Address already in use: make_sock: could not bind to...

# /etc/init.d/httpd startStarting httpd: (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:80no listening sockets available, shutting downUnable to open lo

httpd 启动报错“”Permission denied: make_sock: could not bind to address [::]:80“”

今天闲来无事复习一下普通用户httpd源码的安装,安装过程不赘述,在启动过程中提示错误 [[email protected] bin]$ ./httpd -k start httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.56.115 for ServerName (13)Permission denied: make_sock: could not bind t

permission denied make_sock could not bind to address 81问题解决

在apache中绑定非http标准端口时,一直出现如下的错误提示: [[email protected] ~]# /etc/init.d/httpd start Starting httpd: (13)Permission denied: make_sock: could not bind to address 0.0.0.0:888 no listening sockets available, shutting down Unable to open logs [FAILED] 解决方案:

apache报Permission denied: make_sock: could not bind to address 解决方案

启动Apache时报错信息: [[email protected] httpd]# /etc/init.d/httpd startStarting httpd: (13)Permission denied: make_sock: could not bind to address [::]:8000(13)Permission denied: make_sock: could not bind to address 0.0.0.0:8000no listening sockets availab

linux 下apche无法监听端口解决办法(Permission denied: make_sock: could not bind to address)

想建立一个测试用的虚拟主机,遇到了这个问题:[[email protected] html]# service httpd startStarting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.termwikidev for ServerName(13)Permission denied: make_sock: could not bin