打开 XAMPP Control Panel 并在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**
1 回答
打开 XAMPP Control Panel 并在Apache下选择 Config . 选择您的httpd.conf并找到以下行 .
你看到的地方 xx 如果它当前声明 81 ,则将其更改为 8080 . 端口81通常由少数应用程序使用,以及443因此我默认情况下总是更改为8080,但您的网络可能不同 . 您显然可以使用
netstat
来查看可用的端口 .完全重启 XAMPP ,因为Apache非常挑剔,然后再次尝试启动Apache .