Install Ngnix On MacBook
Want to install a web server that also is used as a reverse proxy, load balancer, mail proxy, and HTTP cache. NGINX is the magic word. In this article, we will take a tour to install and verify the installation of Nginx on our favorite MacBooks.
Install NGINX on your macOS by following step by steps guide
Step 1: Install Homebrew
If homebrew is not installed on the machine, 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
Update homebrew repository to get all of the latest packages available
brew update
Step 4: Install NGINX
To install NGINX, run the brew install command and specify NGINX as the package name
brew install nginx
Step 5: Verify NGINX Status
One can verify the NGINX running status, one can use the brew services command
brew services list
Step 6: Nginx Commands
One can start, restart and stop the NGINX using the following commands
brew services start nginx
brew services restart nginx
brew services stop nginx