Installing NGINX on MAC (Part 1)

Nginx from Beginner to Advanced

Nginx is one of the most widely used web servers in the world. In addition to being a web server it has also become very popular for reverse proxy, HTTP Caching & Load Balancing.

This is a multipart part series where we will be installing, configuring and deploying Nginx on a local machine with Mac OS installed as it were a production machine.

Let’s start with Part 1: Installing Nginx.

Installing Homebrew

/bin/bash -c “$(curl -fsSL"

You can visit for more details

If Homebrew is already installed you can use the below command to update the repository index

brew update

Installing Nginx

brew install nginx

Once installed you can see the version of the Nginx that is installed in the Summary.

Starting and Stopping Nginx


It will start the web server. You can then visit in your browser to see a welcome message by Nginx.

To stop the Nginx server add the stop signal as below.

nginx -s stop

Next -> Part 2: Simple Configuration Nginx on Mac

Royale Cheese: Co-Founder & Technical Director