apache與其他webserver結合時,無法啟動

來源:互聯網
上載者:User

今天早上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自動啟動各種服務,需要注意服務的啟動順序。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.