Start Homebrew Installed Version of NGINX When macOS Boots

boots, shoes, moss

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 – sudo brew services start nginx.
brew install nginx
sudo brew services start nginx
Screenshot 2023 01 02 at 11.19.58 AM

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

sudo brew services stop nginx

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.