免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
1234下一页
最近访问板块 发新帖
查看: 26802 | 回复: 36
打印 上一主题 下一主题

[Web] httpd启动和停止均失败,除了重装系统之外有无解决办法?? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-02-14 10:35 |只看该作者 |倒序浏览
本帖最后由 laowu2517 于 2011-02-14 10:45 编辑

[root@Utown ~]# service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd:                                            [FAILED]
服务中也没有进程占用http的端口
[root@Utown ~]# netstat -tnl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State      
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      
tcp        0      0 :::22                       :::*                        LISTEN   
错误信息里面提示如下   
[root@Utown ~]# cat /var/log/httpd/error_log
[Mon Feb 14 09:22:53 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Feb 14 09:25:36 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Feb 14 09:39:58 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Feb 14 10:29:27 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Feb 14 10:29:51 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

[root@Utown ~]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted
[root@Utown ~]# rpm -qa | grep httpd
httpd-2.2.3-31.el5
httpd-devel-2.2.3-31.el5
httpd-manual-2.2.3-31.el5
[root@Utown ~]#

论坛徽章:
59
2015七夕节徽章
日期:2015-08-24 11:17:25ChinaUnix专家徽章
日期:2015-07-20 09:19:30每周论坛发贴之星
日期:2015-07-20 09:19:42ChinaUnix元老
日期:2015-07-20 11:04:38荣誉版主
日期:2015-07-20 11:05:19巳蛇
日期:2015-07-20 11:05:26CU十二周年纪念徽章
日期:2015-07-20 11:05:27IT运维版块每日发帖之星
日期:2015-07-20 11:05:34操作系统版块每日发帖之星
日期:2015-07-20 11:05:36程序设计版块每日发帖之星
日期:2015-07-20 11:05:40数据库技术版块每日发帖之星
日期:2015-07-20 11:05:432015年辞旧岁徽章
日期:2015-07-20 11:05:44
2 [报告]
发表于 2011-02-14 12:16 |只看该作者
重装httpd以。或者用源码安装吧。

论坛徽章:
0
3 [报告]
发表于 2011-02-14 12:32 |只看该作者
1、楼主你在默认配置基础之上都做了哪些操作?方便的话回一下,别带注释。

2、修改日志级别
[root@ppp ~]# grep LogLevel /etc/httpd/conf/httpd.conf
LogLevel debug

论坛徽章:
0
4 [报告]
发表于 2011-02-14 13:35 |只看该作者
错误可能被启动脚本隐藏了,执行下面2个看看是否有报错?
httpd -k stop
httpd -k start

论坛徽章:
0
5 [报告]
发表于 2011-02-14 13:40 |只看该作者
是不是修改过 conf文件后出现的情况啊?

论坛徽章:
34
亥猪
日期:2015-03-20 13:55:11戌狗
日期:2015-03-20 13:57:01酉鸡
日期:2015-03-20 14:03:56未羊
日期:2015-03-20 14:18:30子鼠
日期:2015-03-20 14:20:14丑牛
日期:2015-03-20 14:20:31辰龙
日期:2015-03-20 14:35:34巳蛇
日期:2015-03-20 14:35:56操作系统版块每日发帖之星
日期:2015-11-06 06:20:00操作系统版块每日发帖之星
日期:2015-11-08 06:20:00操作系统版块每日发帖之星
日期:2015-11-19 06:20:00黄金圣斗士
日期:2015-11-24 10:43:13
6 [报告]
发表于 2011-02-14 18:07 |只看该作者
看看 messages?

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
7 [报告]
发表于 2011-02-14 20:34 |只看该作者
楼主重启apache之前修改过什么配置没有

论坛徽章:
0
8 [报告]
发表于 2011-02-15 09:40 |只看该作者
回复 4# wzypunk


    apache的配置文件什么都没动
[root@Utown ~]# httpd -k stop
httpd (no pid file) not running
[root@Utown ~]# httpd -k start
[root@Utown ~]# netstat -tnl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State      
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      
tcp        0      0 :::22                       :::*                        LISTEN      
[root@Utown ~]# service httpd start
Starting httpd:                                            [FAILED]
[root@Utown ~]#

论坛徽章:
0
9 [报告]
发表于 2011-02-15 09:42 |只看该作者
回复 6# vermouth


    [root@Utown ~]# cat /var/log/messages
Feb 13 04:02:03 Utown syslogd 1.4.1: restart.
Feb 13 13:08:01 Utown auditd[2122]: Audit daemon rotating log files
Feb 13 21:00:01 Utown pidof[15374]: can't get program name from /proc/15366/stat
Feb 14 07:50:01 Utown pidof[28776]: can't get program name from /proc/28743/stat
Feb 14 09:42:01 Utown kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
[root@Utown ~]#

论坛徽章:
0
10 [报告]
发表于 2011-02-15 09:51 |只看该作者
安装了几个web服务器?
系统日志有没有什么异常
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP