gpt4 book ai didi

apache - 如何设置xampp打开本地主机:8080 instead of just localhost

转载 作者:行者123 更新时间:2023-12-02 15:49:46 24 4
gpt4 key购买 nike

我使用 XAMPP 1.7.3。 Apache 和 MySQL 已安装。没有别的了。

Apache 安装在默认端口 80 上。单击 Apache 旁边的“Admin”将打开 http://localhost/xampp/。其效果符合预期。

我导航到xampp/apache/conf/httpd.conf并对其进行了编辑。设置监听 8080。现在 http://localhost:8080/xampp/可以按预期工作,但管理按钮仍然打开 http://localhost/xampp/,但不会打开任何内容。这样做后我重新启动了计算机,但没有结果。

如何让XAMPP apache admin打开localhost:8080/xampp

最佳答案

管理按钮引用的端口是可配置的。在 XAMPP 安装文件夹中有一个 xampp-control.ini 文件。更改 [ServicePorts] 下的 Apache 条目将影响管理按钮打开的 URL。

[ServicePorts]
Apache=8080

关于apache - 如何设置xampp打开本地主机:8080 instead of just localhost,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11152231/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com