Skip to content

Instantly share code, notes, and snippets.

@harsh4870
Created March 2, 2021 06:02
Show Gist options
  • Save harsh4870/c858ffa119248eff43af98c0cb2c939e to your computer and use it in GitHub Desktop.
Save harsh4870/c858ffa119248eff43af98c0cb2c939e 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.10.3 into current directory.\033[0m"
curl -O http://nginx.org/download/nginx-1.10.3.tar.gz
echo "\033[32m-nginx-> nginx tar downloaded, unarchiving...\033[0m"
tar -zxf nginx-1.10.3.tar.gz
cd nginx-1.10.3
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
@harsh4870
Copy link
Author

Just run this simple command : curl -L https://git.io/JthoP | sh

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