Skip to content

Instantly share code, notes, and snippets.

@tad124737337
Created November 18, 2013 10:16
Show Gist options
  • Save tad124737337/7525587 to your computer and use it in GitHub Desktop.
Save tad124737337/7525587 to your computer and use it in GitHub Desktop.
# 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