Difference between revisions of "Osx-nginx"

From John Freier
Jump to: navigation, search
(Created page with "To install Nginx on OSX. 1. Download Nginx. 2. Extract 3. Run the following ./configure make sudo make install It will install Nginx to /usr/local/nginx Nginx will de...")
 
 
Line 14: Line 14:
 
== Start/Stop ==
 
== Start/Stop ==
 
To start Nginx
 
To start Nginx
   sudo ./sbin/nginx
+
   cd /usr/local/nginx/sbin
 +
  sudo ./nginx
  
  

Latest revision as of 14:21, 24 June 2022

To install Nginx on OSX.

1. Download Nginx. 2. Extract 3. Run the following

 ./configure
 make
 sudo make install

It will install Nginx to /usr/local/nginx

Nginx will default to port 80.

Start/Stop

To start Nginx

 cd /usr/local/nginx/sbin
 sudo ./nginx


To stop Nginx

 ps aux | grep nginx
 kill [nginx_pid]