...
brew install nginx
Depending on how homebrew configures nginx you may your chipset (Apple/ Intel) you will end up with either of the following:
Document root for placing files is: /usr/local/var/www
(Intel) OR /opt/homebrew/var/www
(Apple)
Site configs go in /usr/local/etc/nginx/servers/
(Intel) OR /opt/homebrew/etc/nginx/servers/
(Apple)
Note |
---|
This guide is based on the Apple default location. If you are using an Intel chipset then you will need to change the attached files to match your setup. i.e. replace |
Start nginx with brew services start nginx
and stop it with brew services stop nginx
...