【发布时间】:2021-09-20 03:05:02
【问题描述】:
我浏览了所有我能找到的在 Big Sur 上安装和配置 Apache 的教程。在讨论配置文件时,教程总是会指向 /usr/local/etc/httpd/httpd.conf ,需要稍微修改一下。唯一的问题是当我检查该目录时该文件不存在。任何想法?提前感谢您的帮助。
编辑:我按照请求卸载并安装了 httpd,但我仍然没有得到 /usr/local/.自制配置一定有不同的地方。
➜ ~ brew uninstall httpd Uninstalling /opt/homebrew/Cellar/httpd/2.4.49... (1,660 files, 31.9MB) ➜ ~ brew install httpd ==> Downloading https://ghcr.io/v2/homebrew/core/httpd/manifests/2.4.49 Already downloaded: /Users/johnny/Library/Caches/Homebrew/downloads/6c60d66c3915be5c993e144a743960b9e6be26e557efeeb6c61f530c79ffed34--httpd-2.4.49.bottle_manifest.json ==> Downloading https://ghcr.io/v2/homebrew/core/httpd/blobs/sha256:e6ebcb4a1307 Already downloaded: /Users/johnny/Library/Caches/Homebrew/downloads/8506f199d5d7def536481d6fa87aa94c25201b57072d032e97edb8ce78fa86a3--httpd--2.4.49.arm64_big_sur.bottle.tar.gz ==> Pouring httpd--2.4.49.arm64_big_sur.bottle.tar.gz ==> Caveats DocumentRoot is /opt/homebrew/var/www. The default ports have been set in /opt/homebrew/etc/httpd/httpd.conf to 8080 and in /opt/homebrew/etc/httpd/extra/httpd-ssl.conf to 8443 so that httpd can run without sudo. To restart httpd after an upgrade: brew services restart httpd Or, if you don't want/need a background service you can just run: /opt/homebrew/opt/httpd/bin/httpd -D FOREGROUND ==> Summary ???? /opt/homebrew/Cellar/httpd/2.4.49: 1,660 files, 31.9MB ➜ ~
【问题讨论】:
标签: apache homebrew macos-big-sur