Apache不能啟動: Unable to open logs


日志名稱:          Application
來源:            Apache Service
日期:            2014/3/12 14:43:21
事件 ID:         3299
任務類別:          無
級別:            錯誤
關鍵字:           經典
用戶:            暫缺
計算機:           USER-20140106PI
描述:
The Apache service named  reported the following error:
>>> Unable to open logs     .
事件 Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Apache Service" />
    <EventID Qualifiers="0">3299</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2014-03-12T06:43:21.000000000Z" />
    <EventRecordID>28004</EventRecordID>
    <Channel>Application</Channel>
    <Computer>USER-20140106PI</Computer>
    <Security />
  </System>
  <EventData>
    <Data>The Apache service named</Data>
    <Data>
    </Data>
    <Data>reported the following error:
&gt;&gt;&gt;</Data>
    <Data>Unable to open logs</Data>
    <Data>
    </Data>
    <Data>
    </Data>
    <Data>
    </Data>
    <Data>
    </Data>
    <Data>
    </Data>
  </EventData>
</Event>

 

日志名稱:          Application
來源:            Apache Service
日期:            2014/3/12 14:43:21
事件 ID:         3299
任務類別:          無
級別:            錯誤
關鍵字:           經典
用戶:            暫缺
計算機:           USER-20140106PI
描述:
The Apache service named  reported the following error:
>>> no listening sockets available, shutting down     .
事件 Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Apache Service" />
    <EventID Qualifiers="0">3299</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2014-03-12T06:43:21.000000000Z" />
    <EventRecordID>28003</EventRecordID>
    <Channel>Application</Channel>
    <Computer>USER-20140106PI</Computer>
    <Security />
  </System>
  <EventData>
    <Data>The Apache service named</Data>
    <Data>
    </Data>
    <Data>reported the following error:
&gt;&gt;&gt;</Data>
    <Data>no listening sockets available, shutting down</Data>
    <Data>
    </Data>
    <Data>
    </Data>
    <Data>
    </Data>
    <Data>
    </Data>
    <Data>
    </Data>
  </EventData>
</Event>

日志名稱:          Application
來源:            Apache Service
日期:            2014/3/12 14:43:21
事件 ID:         3299
任務類別:          無
級別:            錯誤
關鍵字:           經典
用戶:            暫缺
計算機:           USER-20140106PI
描述:
The Apache service named  reported the following error:
>>> (OS 10048)通常每個套接字地址(協議/網絡地址/端口)只允許使用一次。  : make_sock: could not bind to address 0.0.0.0:80     .
事件 Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Apache Service" />
    <EventID Qualifiers="0">3299</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2014-03-12T06:43:21.000000000Z" />
    <EventRecordID>28002</EventRecordID>
    <Channel>Application</Channel>
    <Computer>USER-20140106PI</Computer>
    <Security />
  </System>
  <EventData>
    <Data>The Apache service named</Data>
    <Data>
    </Data>
    <Data>reported the following error:
&gt;&gt;&gt;</Data>
    <Data>(OS 10048)通常每個套接字地址(協議/網絡地址/端口)只允許使用一次。  : make_sock: could not bind to address 0.0.0.0:80</Data>
    <Data>
    </Data>
    <Data>
    </Data>
    <Data>
    </Data>
    <Data>
    </Data>
    <Data>
    </Data>
  </EventData>
</Event>

 

很難從給出的信息中發現有用的東西,
讓你不知道是哪出了問題,幸好通常你不會是第一個碰到這個問題的人,又幸好有度娘。
 
今天一開機,Apache就不能啟動了,結果在Event Viewer中看到說: Unable to open logs
不知道是什么意思。
 
經過一番搜索,才知道,如果Apache默認的80端口被占用才會報這個錯,
 
解決的辦法很簡單:
用netstat -ano查看Local Address中Listening 80的應用的PID, 去任務管理器中找到對應的進程,關閉此進程即可。
 
我這邊發現的進程居然是一個叫skype的進程占了,也不知道它監聽80端口干嘛,看起來有點古怪。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM