1. 程式人生 > >Apache shutdown unexpectedly解決方法

Apache shutdown unexpectedly解決方法

問題描述

最近在搞點web,裝了XAMPP,在啟動apache的時候就鬱悶了,
18:22:07 [Apache] Error: Apache shutdown unexpectedly.
18:22:07 [Apache] This may be due to a blocked port, missing dependencies,
18:22:07 [Apache] improper privileges, a crash, or a shutdown by another method.
18:22:07 [Apache] Press the Logs button to view error logs and check
18:22:07 [Apache] the Windows Event Viewer for more clues
18:22:07 [Apache] If you need more help, copy and post this
18:22:07 [Apache] entire log window on the forums

解決辦法

經過一番研究,原來是MainPort和SSLPort的問題,建議先在cmd中執行(安裝路徑)\xampp\apache\bin\httpd.exe,然後根據cmd中的提示,來解決。

  1. 第一種解決辦法

    • cmd 通過執行\xampp\apache\bin\httpd.exe,列印如下: 通常每個套接字地址(協議/網路地址/埠)只允許使用一次。 : make_sock: could not bind to address 0.0.0.0:80 或[ : : ]:80
      在/xampp/apache/conf/extra/httpd.conf 把Listen 80 修改為 88 (可自定義)
    • 滿懷信心,再執行\xampp\apache\bin\httpd.exe,列印如下: 通常每個套接字地址(協議/網路地址/埠)只允許使用一次。 : make_sock: could not bind to address
      0.0.0.0:443 在/xampp/apache/conf/extra/httpd-ssl.conf 把Listen 443 修改為 444(可自定義)
  2. 最直接的方法是關閉佔用80、443埠的程序:
    1.通過cmd中netstat -ano 看看本機80、443埠被佔用沒這裡可能會被其他程式佔用如iis、虛擬機器等
    2.通過cmd中列印tasklist,查詢佔用80、443埠的程序名稱。
    3.taskkill /pid 埠號 殺掉此程序名稱,XAMPP重啟apache即可。

推薦第一種辦法。
補充:還有一種情況我沒遇到,參考網上說的。如果配置了vhosts的話請把httpd-vhosts.conf 中埠改為88(同上埠號)

相關推薦

Apache shutdown unexpectedly解決方法

問題描述 最近在搞點web,裝了XAMPP,在啟動apache的時候就鬱悶了, 18:22:07 [Apache] Error: Apache shutdown unexpectedly. 18:22:07 [Apache] This may be

【虛擬機器/伺服器】XAMPP錯誤: Apache shutdown unexpectedly解決辦法

XAMPP安裝好之後啟動,但有些使用者在啟動apache的時候會出現: 11:41:38 [Apache] Status change detected: running 11:41:38 [Ap

PHP Apache shutdown unexpectedly啟動錯誤解釋及解決方法

csdn ext block div lin p s 配置 ras host 在學PHP的時候,偶然發現XAMPP窗體Apache的啟動出現錯誤,出現下面的錯誤提示: 9:52:41 [Apache] Attempting to start Apache app..

Apache shutdown unexpectedly啟動錯誤解決方法

xampp啟動時顯示的錯誤為: 9:52:41  [Apache] Attempting to start Apache app... 9:52:41  [Apache] Status change

xampp啟動失敗 Apache shutdown unexpectedly

占用 eight ssl 配置 重啟 ima 修改 shu 啟動 我知道是端口被我的虛擬機占用,但是我的虛擬機也要同時打開,所以 我需要修改xampp的端口 1, 2修改二個配置文件 修改httpd.conf 修改httpd-ssl。conf 4,重啟xampp

Apache 403 錯誤解決方法-讓別人可以訪問你的服務器

denied 標簽 ted art get 錯誤 cnblogs -1 註意 參考網址:http://www.cnblogs.com/mrlaker/archive/2013/04/29/3050888.html http://www.jb

java.lang.NoClassDefFoundError: org/apache/curator/RetryPolicy解決方法

今天整合es-job到公司的框架時,啟動時出現上述錯誤 java.lang.NoClassDefFoundError: org/apache/curator/RetryPolicy at storm.kafka.KafkaSpout.open(KafkaSpout.java:68) at backtype.

xampp 啟動apache 提示:Error: Apache shutdown unexpectedly.

無法啟動xampp的apache提示錯誤: 下午 8:32:21  [Apache]       Error: Apache shutdown unexpectedly. 下午 8:32:21  [Apache]   

Windows 無法在本地計算機啟動 Apache tomcat9 的解決方法

“Windows 不能在本地計算機啟動 Apache9. 有關更多資訊,查閱系統事件日誌。如果這是非 Microsoft 服務,請與服務廠商聯絡,並參考特定服務錯誤程式碼 1.” 最近遇到了tomcat的報錯,win10無法啟動tomcat9 在網上找解決辦法,說是jd

xampp apache無法啟動解決方法

xampp的獲得和安裝都十分簡單,你只要到以下網址: http://www.apachefriends.org/zh_cn/xampp.html 下載xampp即可,我安裝的是windows版本的Installer安裝包,只要根據它的安裝提示一路安裝下去就可以

Windows 無法在本地計算機啟動Apache tomcat的解決方法

“Windows不能在本地計算機啟動Apache2.有關更多資訊,查閱系統事件日誌。如果這是非Microsoft服務,請與服務廠商聯絡,並參考特定服務錯誤程式碼1.” 當我們把tomcat做成wind

關於編譯安裝apache報錯解決方法

#./configure --prefix……檢查編輯環境時出現: checking for APR... no configure: error: APR not found .  Please read the documentation 解決辦法: 1.下載所需

xampp執行MySQL shutdown unexpectedly解決方案

在初次搭建XAMPP,Apache和MySQL都可以正常啟動,一旦關機重啟XAMPP時,發現Apache可以正常啟動;而MySQL卻不能正常執行,會碰到 Error: MySQL shutdown unexpectedly.。我們稱它為MySQL意外關機。這是由於埠被佔用,

Git: fatal: The remote end hung up unexpectedly 解決方法

方法一: 在命令列執行: git config --global http.postBuffer 524288000 # some comments below report having to double the value: git config --global

xampp中apache點擊啟動失敗解決方法

expec 錯誤 his exp 使用 check eth you err 錯誤提示: 9:15:53 AM [Apache] Error: Apache shutdown unexpectedly.9:15:53 AM [Apache] This may be due

Target runtime Apache Tomcat v6.0 is not defined.錯誤解決方法

view js xml val fix for .text each 工程 eclipse 我們在用Eclipse導入一個新的項目時,假設我們使用JDK1.7和tomcat7時,導入的項目會在Eclipse的Marker下提示Target runtime

org.apache.catalina.LifecycleException報錯解決方法

實用 star tex otf run 下午 ros r.java contex 嚴重: A child container failed during startjava.util.concurrent.ExecutionException: org.apache.cat

記錄一次apache服務器啟動報錯和解決方法

受限 png www img oot 端口 使用 rwx 環境 問題描述:在liunx系統上安裝軟件時需要較大的權限,一般用戶是不能隨便安裝的。為了省事,在安裝lamp環境時,整個過程都是以root身份安裝各種軟件的。最後整個環境是安裝成功,但是像apache這樣的服務器如

target runtime apache v7.0 not defined 的解決方法

target 操作 自己 .com html htm facet bsp 文件 在工作臺目錄下找到自己操作的項目的文件夾 /.settings/org.eclipse.wst.common.project.facet.core.xml 刪掉 <runtime nam

confluence中org.apache.tomcat.util.net.NioEndpoint$Acceptor.run Socket accept failed的解決方法

load cal internal works dac shu per ots star confluence中org.apache.tomcat.util.net.NioEndpoint$Acceptor.run Socket accept failed的解決方法 1.