![](/img/trans.png)
[英]Apache port 80 works but port 443 wont work with laravel project
[英]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.