Created
November 18, 2013 10:16
-
-
Save tad124737337/7525587 to your computer and use it in GitHub Desktop.
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
# Run these commands as your normal login (e.g. "michael") | |
# Remove any existing versions of nginx | |
sudo apt-get remove '^nginx.*$' | |
# Add nginx repo to sources.list | |
cat <<'EOF' | sudo tee -a /etc/apt/sources.list | |
deb http://nginx.org/packages/ubuntu/ precise nginx | |
deb-src http://nginx.org/packages/ubuntu/ precise nginx | |
EOF | |
# Add nginx key | |
curl http://nginx.org/keys/nginx_signing.key | sudo apt-key add - | |
# install nginx | |
sudo apt-get update && sudo apt-get -y install nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment