Skip to content

Instantly share code, notes, and snippets.

@crossai-2033
Created December 10, 2013 16:10
Show Gist options
  • Save crossai-2033/7893189 to your computer and use it in GitHub Desktop.
Save crossai-2033/7893189 to your computer and use it in GitHub Desktop.
mac nginx conf
#!/bin/bash
## DOWNLOADS http://inikolaev.blogspot.com/2013/08/installing-nginx-on-mac-os-x.html
sudo curl -OL h ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.13.tar.gz > /usr/local/src/pcre-8.13.tar.gz
sudo curl -OL h http://nginx.org/download/nginx-1.1.4.tar.gz > /usr/local/src/nginx-1.1.4.tar.gz
## Install PCRE
sudo mkdir -p /usr/local/src
cd /usr/local/src
tar xvzf pcre-8.13.tar.gz
cd pcre-8.13
./configure --prefix=/usr/local
make
sudo make install
cd ..
## Install Nginx
tar xvzf nginx-1.1.4.tar.gz
cd nginx-1.1.4
./configure --prefix=/usr/local/nginx --with-http_ssl_module
make
sudo make install
## Start Nginx
sudo /usr/local/nginx/sbin/nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment