(98)Address already in use: make_sock: could not bind to address 80 [resolved]
来源:互联网 发布:淘宝商城女装秋装 编辑:程序博客网 时间:2024/04/30 00:55
Description:
hi there, was wondering if you could help me with this error i am getting. i was trying to restart my apache server on my linux machine when i got this error i have never seen before, can anyone tell me what this error means?
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
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:80
no listening sockets available, shutting down
Unable to open logs
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Cause:
This problem is caused by another service listening to TCP/IP port 80.
Solution:
1. $ sudo fuser -k -n tcp 80
$ sudo /etc/init.d/httpd start
2. Change the listen port in the httpd config file to 81, by doing this we want to see which service is using port 80.
just do the following command as root :
#netstat -tlp
after running the command.
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1546/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1429/cupsd
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 1592/postmaster
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2360/sendmail: acce
tcp 0 0 0.0.0.0:8554 0.0.0.0:* LISTEN 3207/gnome-dvb-daem
tcp 0 0 0.0.0.0:54858 0.0.0.0:* LISTEN 1369/rpc.statd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1310/rpcbind
tcp 0 0 :::59092 :::* LISTEN 1369/rpc.statd
tcp 0 0 :::22 :::* LISTEN 1546/sshd
tcp 0 0 ::1:631 :::* LISTEN 1429/cupsd
tcp 0 0 :::443 :::* LISTEN 2593/httpd
tcp 0 0 :::6881 :::* LISTEN 2757/ktorrent
tcp 0 0 :::111 :::* LISTEN 1310/rpcbind
tcp 0 0 :::80 :::* LISTEN 2593/httpd
tcp 0 0 :::81 :::* LISTEN 2593/httpd
now we know that port 80 is utilised by another service, so locate and change system-config-httpd.conf: system-config-httpd.conf system-config-httpd.conf. all of this, restart httpd:
/etc/init.d/httpd start
3. Third solution is to change binging address in your httpd.conf like this:
Listen 127.0.0.1:80 ( that means: instead of Listen 0.0.0.0:80)
hi there, was wondering if you could help me with this error i am getting. i was trying to restart my apache server on my linux machine when i got this error i have never seen before, can anyone tell me what this error means?
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
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:80
no listening sockets available, shutting down
Unable to open logs
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Cause:
This problem is caused by another service listening to TCP/IP port 80.
Solution:
1. $ sudo fuser -k -n tcp 80
$ sudo /etc/init.d/httpd start
2. Change the listen port in the httpd config file to 81, by doing this we want to see which service is using port 80.
just do the following command as root :
#netstat -tlp
after running the command.
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1546/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1429/cupsd
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 1592/postmaster
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2360/sendmail: acce
tcp 0 0 0.0.0.0:8554 0.0.0.0:* LISTEN 3207/gnome-dvb-daem
tcp 0 0 0.0.0.0:54858 0.0.0.0:* LISTEN 1369/rpc.statd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1310/rpcbind
tcp 0 0 :::59092 :::* LISTEN 1369/rpc.statd
tcp 0 0 :::22 :::* LISTEN 1546/sshd
tcp 0 0 ::1:631 :::* LISTEN 1429/cupsd
tcp 0 0 :::443 :::* LISTEN 2593/httpd
tcp 0 0 :::6881 :::* LISTEN 2757/ktorrent
tcp 0 0 :::111 :::* LISTEN 1310/rpcbind
tcp 0 0 :::80 :::* LISTEN 2593/httpd
tcp 0 0 :::81 :::* LISTEN 2593/httpd
now we know that port 80 is utilised by another service, so locate and change system-config-httpd.conf: system-config-httpd.conf system-config-httpd.conf. all of this, restart httpd:
/etc/init.d/httpd start
3. Third solution is to change binging address in your httpd.conf like this:
Listen 127.0.0.1:80 ( that means: instead of Listen 0.0.0.0:80)
- (98)Address already in use: make_sock: could not bind to address 80 [resolved]
- (98)Address already in use: make_sock: could not bind to address 80 [resolved]
- Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address
- Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address
- apache启动报错(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 [::]:80
- apache启动报错(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
- apache启动报错(98)Address already in use: make_sock: could not bind to address [::]:80
- apache启动报错(98)Address already in use: make_sock: could not bind to address [::]:80
- apache启动报错(98)Address already in use: make_sock: could not bind to address [::]:80
- apache启动报错(98)Address already in use: make_sock: could not bind to address [::]:80
- (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
- Address already in use: make_sock: could not bind to
- apache启动报错(98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address alrea
- apache启动报错(98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address alre
- (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443的解决办法
- apache启动报错# Address already in use: make_sock: could not bind to address [::]:80
- QTableWidget 用法总结
- 如何让代码从“无”到“有”-WINCE下的MFC编程
- OBJECT ARX 遍历数据库所有图元代码
- 通过war包部署默认tomcat工程的问题
- QT文件显示中文
- (98)Address already in use: make_sock: could not bind to address 80 [resolved]
- dwr反推技术
- HTML <form> 标签的 action 属性
- 傅里叶变换基础与演示
- WSDL绑定样式各种组合优劣势比较
- 可能致癌的几种化妆品
- 关于nginx配置解析中merge操作的探讨
- 讲讲volatile的作用
- Linux 查找 宏定义 结构体定义 函数定义