![](/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.