Skip to content

Instantly share code, notes, and snippets.

@hdyen
Last active October 26, 2015 03:16
Show Gist options
  • Save hdyen/249ca2b993f9183ead0c to your computer and use it in GitHub Desktop.
Save hdyen/249ca2b993f9183ead0c to your computer and use it in GitHub Desktop.
Ubuntu 12.04.5 LTS nginx + uWSGI

Installing nginx using official repo

下載並新增 nginx_signing.key

wget http://nginx.org/keys/nginx_signing.key
sudo apt-key add nginx_signing.key

新增 /etc/apt/sources.list.d/nginx.list

deb http://nginx.org/packages/ubuntu/ precise nginx
deb-src http://nginx.org/packages/ubuntu/ precise nginx

移除舊版 nginx,安裝新版 nginx:

sudo apt-get remove --purge nginx-*
apt-get update
apt-get install nginx
service nginx restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment