~ % brew install nginx ==> Downloading https://formulae.brew.sh/api/formula.jws.json #=#=-# # #=O#- # # -#O=-# # # ########################################################################################################################################## 100.0% ==> Downloading https://formulae.brew.sh/api/cask.jws.json ########################################################################################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/nginx/manifests/1.25.3 Already downloaded: /Users/cheng.tang/Library/Caches/Homebrew/downloads/6ff6885c1f394ca9099a079cf19c71f7d8a5a60a1fbb2146623520351db161d7--nginx-1.25.3.bottle_manifest.json ==> Fetching nginx ==> Downloading https://ghcr.io/v2/homebrew/core/nginx/blobs/sha256:e0e4362ed0777f481f6e6ceb44ac5c65b0d1aeb092a5686e14c329ec692950a1 ########################################################################################################################################## 100.0% ==> Pouring nginx--1.25.3.monterey.bottle.tar.gz ==> Caveats Docroot is: /usr/local/var/www The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that nginx can run without sudo. nginx will load all files in /usr/local/etc/nginx/servers/. To start nginx now and restart at login: brew services start nginx Or, if you don't want/need a background service you can just run: /usr/local/opt/nginx/bin/nginx -g daemon\ off\; ==> Summary 标签:Downloading,local,nginx,mac,usr,brew,安装,1.25 From: https://www.cnblogs.com/softidea/p/17878799.html