如何在 MAMP 中检查服务器配置(“$ httpd -S”)?

问题描述 投票:0回答:1

我之前使用 Homebrew 在我的 Mac Mini 上安装了 Apache,但我目前使用的是 MAMP。当我发出终端命令

httpd -S
来检查 Apache 配置时,它会检查 Homebrew 配置。有什么方法可以测试 MAMP 的配置吗?我想使用相同的
httpd -S
命令,但如果有另一种首选方法来为 MAMP 执行此操作,那也很好。

apache mamp virtualhost
1个回答
1
投票

你用

-f
标志来做,像这样:

 httpd -f /Applications/MAMP/conf/apache/httpd.conf -S

这是在

httpd
选项:

Options:
 ...
  -f file: specify an alternate ServerConfigFile
© www.soinside.com 2019 - 2024. All rights reserved.