Created
July 6, 2011 14:03
-
-
Save tulios/1067293 to your computer and use it in GitHub Desktop.
Script que baixa e compila o Nginx
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
#!/bin/bash | |
PCRE=pcre-8.12 | |
NGINX=nginx-1.0.4 | |
## DOWNLOADS | |
sudo curl -OL h ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$PCRE.tar.gz > /usr/local/src/$PCRE.tar.gz | |
sudo curl -OL h http://nginx.org/download/$NGINX.tar.gz > /usr/local/src/$NGINX.tar.gz | |
## Install PCRE | |
sudo mkdir -p /usr/local/src | |
cd /usr/local/src | |
tar xvzf $PCRE.tar.gz | |
cd $PCRE | |
./configure --prefix=/usr/local | |
make | |
sudo make install | |
cd .. | |
## Install Nginx | |
tar xvzf $NGINX.tar.gz | |
cd $NGINX | |
./configure --prefix=/usr/local --with-http_ssl_module | |
make | |
sudo make install | |
# Coloque /usr/local/sbin no PATH | |
## Start Nginx | |
# sudo nginx | |
## Stop Nginx | |
# sudo nginx -s stop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment