Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 0.63 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/bash
  2.  
  3. PCRE=pcre-8.12
  4. NGINX=nginx-1.0.4
  5.  
  6. ## DOWNLOADS
  7. sudo curl -OL h ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$PCRE.tar.gz > /usr/local/src/$PCRE.tar.gz
  8. sudo curl -OL h http://nginx.org/download/$NGINX.tar.gz > /usr/local/src/$NGINX.tar.gz
  9.  
  10. ## Install PCRE
  11. sudo mkdir -p /usr/local/src
  12. cd /usr/local/src
  13. tar xvzf $PCRE.tar.gz
  14. cd $PCRE
  15. ./configure --prefix=/usr/local
  16. make
  17. sudo make install
  18. cd ..
  19.  
  20. ## Install Nginx
  21. tar xvzf $NGINX.tar.gz
  22. cd $NGINX
  23. ./configure --prefix=/usr/local --with-http_ssl_module
  24. make
  25. sudo make install
  26.  
  27. # Coloque /usr/local/sbin no PATH
  28.  
  29. ## Start Nginx
  30. # sudo nginx
  31.  
  32. ## Stop Nginx
  33. # sudo nginx -s stop