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

# /etc/init.d/httpd restart

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

                                                           [FAILED]


解决方法:

1. #netstat -lnp|grep 80

tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      10923/apache2

tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      14533/nginx


2. # ps -aux | grep http

Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html

ehuuhui  12547  0.0  0.1   3412   764 pts/1    S+   06:24   0:00 grep --color=auto http


3.# ps -aux | grep apache
root      9696  0.0  0.0   3320   564 ?        S    Oct10   0:28 tail -f /var/log/apache2/error.log
www-data 10923  0.0  0.3  18964  2228 ?        S    02:05   0:00 /usr/sbin/apache2 -k start
www-data 10924  0.0  0.3  18964  2228 ?        S    02:05   0:00 /usr/sbin/apache2 -k start
www-data 10925  0.0  0.3  18964  2228 ?        S    02:05   0:00 /usr/sbin/apache2 -k start
www-data 10926  0.0  0.3  18964  2228 ?        S    02:05   0:00 /usr/sbin/apache2 -k start
ehuuhui  11333  0.0  0.5  10328  3532 pts/1    T    03:04   0:00 vi 001-eaa-apache

ehuuhui  12579  0.0  0.1   3412   764 pts/1    S+   06:25   0:00 grep --color=auto apache


4. #sudo kill -9 10923
#sudo kill -9 10924

#sudo kill -9 10925
#sudo kill -9 10926


5.#ps -aux | grep apache
root      9696  0.0  0.0   3320   564 ?        S    Oct10   0:28 tail -f /var/log/apache2/error.log
ehuuhui  11333  0.0  0.5  10328  3532 pts/1    T    03:04   0:00 vi 001-eaa-apache
ehuuhui  12586  0.0  0.1   3412   768 pts/1    S+   06:28   0:00 grep --color=auto apache

6.#sudo /etc/init.d/apache2 restart
 * Restarting web server apache2                                         [ OK ]
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值