Skip to content

Instantly share code, notes, and snippets.

@codeblooded
Last active December 17, 2015 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeblooded/5518077 to your computer and use it in GitHub Desktop.
Save codeblooded/5518077 to your computer and use it in GitHub Desktop.
Shell Script to Install nginx from source.
#!/bin/sh
# nginx install from source shell
echo "\033[32m-nginx-> cUrling nginx v1.4.0 into current directory.\033[0m"
curl -O http://nginx.org/download/nginx-1.4.0.tar.gz
echo "\033[32m-nginx-> nginx tar downloaded, unarchiving...\033[0m"
tar -zxf nginx-1.4.0.tar.gz
cd nginx-1.4.0
echo "\033[32m-nginx-> ./configure\033[0m"
./configure
echo "\033[32m-nginx-> make\033[0m"
make
echo "\033[32m-nginx-> {sudo} make install\033[0m"
sudo make install

Technical Specifications

nginx download
Version: 1.4.0
Mirror: http://nginx.org/download
Dependencies: cUrl

Installation

To install paste the following into your terminal:

$ curl -L http://git.io/pnORqw | sh

It follows a simple redirect to the raw file of this gist, which is piped to shell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment