Last active
March 15, 2017 16:12
-
-
Save leowinterde/a9480ea6d93c3abbe3bf8d5eb01aee0e to your computer and use it in GitHub Desktop.
This file contains hidden or 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/bash | |
echo "--- Updating & cleaning system ---" | |
sudo apt-get update && sudo apt-get upgrade -y | |
echo "--- Installing base packages ---" | |
sudo apt-get install -y sudo apt-transport-https | |
echo "--- Installing nginx stuff ---" | |
curl -L https://nginx.org/keys/nginx_signing.key | sudo apt-key add - | |
sh -c "echo -e deb "http://nginx.org/packages/debian/ jessie nginx\ndeb-src http://nginx.org/packages/debian/ jessie nginx" > /etc/apt/sources.list.d/nginx.list" | |
sudo apt-get install -y nginx | |
echo "--- Restarting nginx ---" | |
sudo service nginx restart | |
echo "--- All set to go! Enjoy nginx. ---" | |
exit 0 |
This file contains hidden or 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/bash | |
echo "--- Updating & cleaning system ---" | |
sudo apt-get update && sudo apt-get upgrade -y | |
echo "--- Installing base packages ---" | |
sudo apt-get install -y sudo apt-transport-https | |
echo "--- Installing nginx stuff ---" | |
curl -L https://nginx.org/keys/nginx_signing.key | sudo apt-key add - | |
sh -c "echo -e deb "http://nginx.org/packages/debian/ wheezy nginx\ndeb-src http://nginx.org/packages/debian/ wheezy nginx" > /etc/apt/sources.list.d/nginx.list" | |
sudo apt-get install -y nginx | |
echo "--- Restarting nginx ---" | |
sudo service nginx restart | |
echo "--- All set to go! Enjoy nginx. ---" | |
exit 0 |
This file contains hidden or 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
SimpleInstall Nginx (https://nginx.org/) on Debian form nginx.org mirror, Pre-Built Packages for Stable version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment