Revisions
-
hdyen revised this gist
Feb 24, 2015 . 1 changed file with 3 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,22 +1,21 @@ ## Installing nginx using official repo 下載並新增 `nginx_signing.key`: ```bash 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: ```bash sudo apt-get remove --purge nginx-* apt-get update apt-get install nginx service nginx restart ``` -
hdyen revised this gist
Feb 24, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ 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 -
hdyen revised this gist
Feb 24, 2015 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,9 +4,16 @@ 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 ``` ```bash sudo apt-get remove --purge nginx-* apt-get update apt-get install nginx -
hdyen revised this gist
Feb 10, 2015 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,6 @@ ## Installing nginx using official repo ```bash wget http://nginx.org/keys/nginx_signing.key sudo apt-key add nginx_signing.key @@ -10,4 +11,5 @@ deb-src http://nginx.org/packages/ubuntu/ precise nginx apt-get update apt-get install nginx service nginx restart ``` -
hdyen created this gist
Feb 9, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ ## Installing nginx using official repo wget http://nginx.org/keys/nginx_signing.key sudo apt-key add nginx_signing.key deb http://nginx.org/packages/ubuntu/ precise nginx deb-src http://nginx.org/packages/ubuntu/ precise nginx apt-get update apt-get install nginx service nginx restart