簡體   English   中英

Apache拒絕打開甚至更改端口80和443的端口

[英]Apache refused to open even changing port 80 and port 443

我已經閱讀了一些帖子,並嘗試對其進行更改,但不幸的是,沒有任何更改。

這是返回的錯誤:

錯誤:Apache意外關閉。 這可能是由於端口阻塞,缺少依賴項,權限不正確,崩潰或其他方法關閉引起的。 按下“日志”按鈕以查看錯誤日志,並檢查Windows事件查看器以獲取更多線索。如果您需要更多幫助,請在論壇上復制並發布整個日志窗口。

我嘗試在端口80和443上偵聽,但無法打開它。

我錯過了什么?

打開XAMPP控制面板,然后在Apache下選擇Config 選擇您的httpd.conf並找到以下行。

# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80 
Listen **xx**

如果您看到xx ,則將其更改為類似於8080(如果當前狀態為81) 端口81和443分別是少數幾個應用程序常用的端口,因此默認情況下我總是總是更改為8080,但是您的網絡可能有所不同。 您顯然可以使用netstat查看可能可用的端口。

完全重啟XAMPP,因為Apache非常麻煩,然后嘗試再次啟動Apache。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM