← All writing
 ·  1 min read

Start Homebrew Installed Version of NGINX When macOS Boots

Configure NGINX to automatically start on macOS boot using Homebrew services.

Start Homebrew Installed Version of NGINX When macOS Boots

If you want to start NGINX on system bootup you can use Homebrew's handy service command.

  • Step 1: Install NGINX via homebrew - if not already installed.
  • Step 2: Add NGINX as an autostart service - brew services start nginx.
bash
brew install nginx
brew services start nginx

After NGINX is added to the autostart, you can disable its autostart using the following command:

bash
brew services stop nginx