Step 1: Install Homebrew
If you don't have homebrew you can install it using the command line.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Step 2: Update Homebrew Repository
Now you will have to update the homebrew repository to get all of the latest packages available.
brew update
Step 3: Install NGINX
To install NGINX you run the brew install command and specify NGINX as the package name.
brew install nginx
Step 4: Check NGINX Status
Now to check the NGINX status whether it's running or stopped you can use the brew services command.
brew services list
brew services restart nginx brew services start nginx brew services stop nginx
Leave a reply