ITPub博客

首页 > Linux操作系统 > Linux操作系统 > apache报错的处理方法

apache报错的处理方法

原创 Linux操作系统 作者:lixingping1985 时间:2010-06-09 14:20:25 0 删除 编辑
apache报错的处理方法
Starting httpd: (98)Address already in use: make_sock

1.netstat -lnp|grep 80

tcp        0      0 192.168.180.68:61027        0.0.0.0:*                   LISTEN      6289/oproxyd       
tcp        0      0 :::80                       :::*                        LISTEN      846/httpd          
tcp        0      0 ::ffff:192.168.180.68:7001  :::*                        LISTEN      32015/java     



# 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


apache报错的处理方法
httpd: Syntax error on line 104

# setenforce 0
# chcon -c -v -R -u system_u -r object_r -t textrel_shlib_t /usr/local/apache/modules/libphp5.so
# service httpd restart
# setenforce 1


linux redhat 5 强制关机启动不起来Run 'setenforce 1'to reenable.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/16111659/viewspace-664797/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-12-16

  • 博文量
    35
  • 访问量
    66618