apache与其他webserver结合时,无法启动

今天早上apache无法访问,查看日志发现

[Thu Feb 21 09:47:48 2008] [error] (111)Connection refused: proxy: HTTP: attempt to connect to 127.0.0.1:3000 (localhost) failed
[Thu Feb 21 09:47:48 2008] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Thu Feb 21 09:47:48 2008] [error] proxy: HTTP: disabled connection for (localhost)

3000端口运行的是ruby的radiant cms系统,所以便怀疑radiant启动失败,便手工启动该服务
[root@localhost ~]# service mongrel_cluster start
Starting all mongrel_clusters…
** !!! PID file tmp/pids/mongrel.3000.pid already exists.  Mongrel could be running already.  Check your log/mongrel.3000.log for errors.
** !!! Exiting with error.  You must stop mongrel and clear the .pid before I’ll attempt a start.
** !!! PID file tmp/pids/mongrel.4000.pid already exists.  Mongrel could be running already.  Check your log/mongrel.4000.log for errors.
** !!! Exiting with error.  You must stop mongrel and clear the .pid before I’ll attempt a start.
[root@localhost ~]# service mongrel_cluster start
Starting all mongrel_clusters…
** !!! PID file tmp/pids/mongrel.4000.pid already exists.  Mongrel could be running already.  Check your log/mongrel.4000.log for errors.
** !!! Exiting with error.  You must stop mongrel and clear the .pid before I’ll attempt a start.

看意思应该是一些临时文件存在,所以无法启动,到该目录下删除,重新启动,果然可以。

发现apache如果在httpd中转向到其他web server,如果那个web server启动失败,则同时会导致apache无法启动,

所以如果在linux下使用service自动启动各种服务,需要注意服务的启动顺序。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值