【问题标题】:Changing port on XAMPP在 XAMPP 上更改端口
【发布时间】:2013-10-10 19:29:42
【问题描述】:

我刚刚在我的 Mac 上安装了 XAMPP,但无法运行 Apache Web 服务器。它不允许我,因为我已经在运行不同的服务器。如何停止当前端口或如何使用其他端口。

【问题讨论】:

    标签: macos xampp


    【解决方案1】:

    那是因为您不在正确的文件中。请尝试

    /Applications/XAMPP/xamppfiles/etc/httpd.conf

    而不是

    /Applications/XAMPP/xamppfiles/apache2/conf/httpd.conf
    

    【讨论】:

      【解决方案2】:

      在XAMPP apache配置目录中找到并打开httpd.conf,找到Listen 80的行,将其更改为您想要的端口,例如:8000,以便该行变为Listen 8000。然后保存文件并从 xampp 重新启动 apache

      在浏览器地址栏输入http://localhost:8000,然后打开

      【讨论】:

      • 我打开 httpd.conf 但没有看到行:Listen 80
      • 这是我在该文件中的内容:Alias /bitnami/ "/Applications/XAMPP/xamppfiles/apache2/htdocs/" Alias /bitnami "/Applications/XAMPP/xamppfiles/apache2/htdocs" 选项索引 FollowSymLinks AllowOverride All Order allow,deny Allow from all
      • 根本就没有Listen 的行吗?也许它是Listen 1234 或其他东西,并且注意 Listen 之前的井号 (#) 标记是评论,因此您可能想要删除它
      • 我在 httpd.conf 中根本没有“Listen..”。
      猜你喜欢
      • 2012-10-19
      • 2013-03-02
      • 2015-05-11
      • 2015-03-16
      • 2015-04-04
      • 2013-07-27
      • 2012-03-02
      • 2015-11-04
      相关资源
      最近更新 更多