Created
November 19, 2012 17:41
-
-
Save tsabat/4112194 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
# create, then go into the build directory | |
sudo mkdir -p /usr/local/src | |
cd /usr/local/src | |
# download, build, and install pcre | |
sudo curl -OL ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.31.tar.gz | |
sudo tar xvzf pcre-8.31.tar.gz | |
cd pcre-8.31 | |
sudo ./configure --prefix=/usr/local | |
sudo make | |
sudo make install | |
cd .. | |
# download, build, and install nginx | |
sudo curl -OL http://nginx.org/download/nginx-1.3.8.tar.gz | |
sudo tar xvzf nginx-1.3.8.tar.gz | |
cd nginx-1.3.8 | |
sudo ./configure --prefix=/usr/local --with-http_ssl_module --with-pcre=../pcre-8.31 | |
sudo make | |
sudo make install | |
# start nginx | |
sudo /usr/local/sbin/nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment