top of page
Writer's pictureArjav Dave

Installing NGINX on MAC (Part 1)

Updated: Jul 17, 2022

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


We will be using Homebrew to install Nginx. To install Homebrew open your terminal and fire the below command:


You can visit https://brew.sh/ for more details


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

brew update 


Installing Nginx


Once Homebrew is installed, installing Nginx is as easy as

brew install nginx 

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


Starting and Stopping Nginx


To start the Nginx server fire the below command.

nginx 

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


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

nginx -s stop 

4,052 views0 comments
About  

Dave Ops (pun intended) tries to be a guide for the developers, dev ops engineers and software teams in their journey to make the world a better place. Learn about best practices, tips & tricks, and a lot of exciting stuff (not necessarily related to tech).

  • Facebook
  • Instagram
  • Twitter Basic Black

© 2023 by Dave Ops

Contact
 

Want to learn about a new topic? Having issues with any of your existing work? Or simply want to connect? Drop your details below.

Thanks for submitting!

bottom of page