**********************************************************
处理办法:
# ps -aux | grep http
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
root     12079 0.0 0.0 61164   720 pts/1    S+   16:06   0:00 grep http
# ps -aux | grep apache
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
apache   10820 0.0 0.0   2044   600 ?        Ss   Jan01   0:04 bash
root     12081 0.0 0.0 61160   716 pts/1    S+   16:06   0:00 grep apache
# kill -9 10820
# /etc/init.d/httpd start
Starting httpd:                                            [ OK ]
# /etc/init.d/httpd restart
Stopping httpd:                                            [ OK ]
Starting httpd:                                            [ OK ]
**********************************************************

httpd/Apache默认占用的是80端口,有时候你使用apache自带的重启脚本会出现

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

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无法启动,你需要查找下你的机器看看是否有哪个线程已经占用了80端口。

1
2
3
4
5
6
7
8
9
10
11
12
netstat -lnp|grep 80
 
#tcp    0   0 0.0.0.0:80    0.0.0.0:*   LISTEN  13957/httpd
 
#查看该进程 (13957是动态的)
ps 13975
 
#结束该进程
kill -9 13975
 
#启动httpd/Apache
service httpd start

apache启动完毕。

REF:

http://www.markdream.com/technologies/server/address-already-in-use-make_sock-could-not-bind-to-address-80.shtml

最新文章

  1. mobiscroll之treelist使用
  2. 这算是ASP.NET MVC的一个大BUG吗?
  3. 11.6---矩阵查找元素(CC150)
  4. 【转】 Android自定义捕获Application全局异常
  5. "Mac OS X"想要进行更改。键入管理员的名称和密码以允许执行此操作("Mac OS X"想使用系统钥匙串)
  6. vim 7.4 编译安装
  7. centos下的mysql安装
  8. python基础课程_学习笔记13:标准库:有些收藏夹——sys
  9. Oracle数据库中直方图对执行计划的影响
  10. NEO从入门到开窗(3) - NEO编译器
  11. Android优秀github项目整理
  12. 记一次Maven编译IKAnalyzer失败及解决办法
  13. MYSQLi数据访问修改数据
  14. WC----命令行实现对文件信息的统计
  15. SVN同步时报错:“Previous operation has not finished; run 'cleanup' if it was interrupted”
  16. spring整合websocket通信
  17. jquery给动态添加的dom元素绑定事件
  18. 查找linux镜像源中的软件版本并进行安装
  19. BZOJ 1340: [Baltic2007]Escape逃跑问题
  20. VMware虚拟机 安装centos7并设置静态ip 连接外网

热门文章

  1. MySQL 索引设计概要
  2. 12.php中无比坑爹的构造函数。
  3. Linux基础命令(一)
  4. JVM的JIT机制
  5. 调用百度API将地名转为经纬度
  6. Python 模块之 time & datetime
  7. Ionic上滑刷新
  8. Go 结构体和map等数据结构转json字符串
  9. 添加github ssh 公钥
  10. SIP穿越NAT SIP穿越防火墙-SBC