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

  
  
  
  
  1. # /etc/init.d/httpd restart
    Stopping httpd: [FAILED]
    Starting httpd: httpd: 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 [::]: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]
  2.  
  3. #80端口被占用
  4. 查找80端口被占用的进程并杀死该进程
  5. 1.netstat -lnp|grep 80 
  6. tcp        0      0 :::80        :::*                   LISTEN      8332/sh       
  7.          
  8.  
  9. 找到pid 8332
  10. 杀掉 pid 8332
  11. #kill -9 8332
  12.  
  13. 杀掉 
  14.  
  15. #/etc/init.d/httpd start 
  16.  
  17. 启动成功 

 

你可能感兴趣的:(apache,职场,休闲,启动报错)