Created
March 2, 2021 06:02
-
-
Save harsh4870/c858ffa119248eff43af98c0cb2c939e to your computer and use it in GitHub Desktop.
Shell Script to Install nginx from source.
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/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just run this simple command : curl -L https://git.io/JthoP | sh