brew install nginx
sudo cp /usr/local/Cellar/nginx/1.8.0/homebrew.mxcl.nginx.plist /Library/LaunchAgents
Replace /usr/local/etc/nginx/nginx.conf
with the nginx.conf
in this gist. I'm using port 5000 for my current project. Obviously, change server_name
as well, and probably the name of its access log.
sudo launchctl load /Library/LaunchAgents/homebrew.mxcl.nginx.plist
i got
/Library/LaunchDaemons/homebrew.mxcl.nginx.plist: Path had bad ownership/permissions Load failed: 122: Path had bad ownership/permissions
when ransudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
. what did i miss?macOs Ventura