Created
August 30, 2011 12:14
-
-
Save kossoy/1180762 to your computer and use it in GitHub Desktop.
Nginx on Mac OS X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
PCRE_DIR="pcre-8.12" | |
PCRE_LINK="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$PCRE_DIR.tar.gz" | |
NGNIX_DIR="nginx-0.8.54" | |
NGNIX_LINK="http://nginx.org/download/$NGNIX_DIR.tar.gz" | |
## DOWNLOADS | |
curl -OL h $PCRE_LINK > $PCRE_DIR.tar.gz | |
curl -OL h http://nginx.org/download/$NGNIX_DIR.tar.gz > $NGNIX_DIR.tar.gz | |
## Install PCRE | |
tar xvzf $PCRE_DIR.tar.gz | |
cd $PCRE_DIR | |
./configure --prefix=/usr/local | |
make | |
sudo make install | |
cd .. | |
## Install Nginx | |
tar xvzf $NGNIX_DIR.tar.gz | |
cd $NGNIX_DIR | |
./configure --prefix=/usr/local --with-http_ssl_module | |
make | |
sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo /usr/local/sbin/nginx -p /usr/local/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo /usr/local/sbin/nginx -s stop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment