Skip to content

Instantly share code, notes, and snippets.

@tulios
Created July 6, 2011 14:03
Show Gist options
  • Save tulios/1067293 to your computer and use it in GitHub Desktop.
Save tulios/1067293 to your computer and use it in GitHub Desktop.
Script que baixa e compila o Nginx
#!/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