gpt4 book ai didi

macos - Mac Apache Web服务器将无法启动,也无法找到任何Web目录

转载 作者:行者123 更新时间:2023-12-04 13:26:10 25 4
gpt4 key购买 nike

我使用的是Mac Yosemite 10.10.5。 Apache Web服务器突然不再启动。我尝试将端口更改为8080。还尝试了sudo apachectl stop和sudo apachectl start。仍然不会打开。

我以为添加新打印机并启用打印共享后可能会发生这种情况。我将其关闭,但仍然无法启动。我不记得我运行了哪个命令,该命令给了我更多详细信息。

enter image description here

更新:当我使用sudo apachectl start时,我注意到即使界面仍然显示STOPPED,也可以通过浏览器访问服务器,但是当我进入localhost/webdirectory时,却找不到。

enter image description here
enter image description here

enter image description here

enter image description here

enter image description here

最佳答案

经过48小时的研究,我找到了这个可行的解决方案,我找到了解决方案here:禁用OSX的内置Apache服务器。

sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist

这使XAMPP可以从80开始,而 POW可以在20559上运行。

关于macos - Mac Apache Web服务器将无法启动,也无法找到任何Web目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40361744/

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