ubuntu上安装Apache2时出现错误

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

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

端口被占用造成

在root权限下键入命令:

# netstat -lnp | grep 80

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

从图中可以看出nginx占用了进程

键入命令

#pkill -9 nginx

杀死nginx的所有进程

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

再次启动Apache成功

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

相关文章:

  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2021-10-28
  • 2022-02-09
猜你喜欢
  • 2021-09-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-27
  • 2021-11-28
相关资源
相似解决方案