service httpd stop
Stopping httpd:                                            [FAILED]
[root@testtest apache_logs]# service httpd start
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. OK $ sudo fuser -k -n tcp 80
     OK $ 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)

最新文章

  1. ArcGIS 10.0紧凑型切片读写方法
  2. 用RMAN备份EBS数据库的脚本
  3. C++程序设计(三)
  4. Code Review Engine Learning
  5. Java8新特性【转】
  6. Lisp使用Lambda语法
  7. JavaScript基础学习(五)—其他引用类型
  8. 关于svg
  9. 关于spring mybateis 定义resultType="java.util.HashMap"
  10. NIO-学习
  11. OOP的五大原则
  12. 动态性能视图v$mystat,v$sesstat,v$statname
  13. java学习(一)--- 基础语法
  14. Linux_x86下NX与ASLR绕过技术(续)
  15. SpringMVC后台token防重复提交解决方案
  16. String、StringBuffer和StringBulder
  17. file_put_contents结合print_r,打造日志功能
  18. etymon word flower bee apiary forget out~1
  19. 5 THINGS TOP BUG BOUNTY HUNTERS DO DIFFERENTLY
  20. Vue学习笔记一:使用vue-cli 创建开发环境

热门文章

  1. mysql数据库基本知识,简单框架
  2. MapReduce分布式编程框架
  3. Keywords Search---hdu2222(AC自动机 模板)
  4. 《OVN Logical Flows and ovn-trace》翻译
  5. 如何用Qt Creator输出helloworld
  6. Java设计模式-简单工厂模式(Static Factory Method)
  7. oracle入门(7)——存储过程
  8. myeclipse自动设置类和方法的注释(快捷键)
  9. 22.解决 eclipse 与 AS 共用 SDK 导致 eclipse ADT 无法使用的问题
  10. mysql监控优化(三)慢查询