Skip to content

Instantly share code, notes, and snippets.

@philiparthurmoore
Forked from hdyen/nginx+uWSGI.md
Created October 26, 2015 03:16

Revisions

  1. @hdyen hdyen revised this gist Feb 24, 2015. 1 changed file with 3 additions and 4 deletions.
    7 changes: 3 additions & 4 deletions nginx+uWSGI.md
    Original 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`:
    新增 `/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
    ```
  2. @hdyen hdyen revised this gist Feb 24, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion nginx+uWSGI.md
    Original 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`:
    新增 `/etc/apt/sources.list.d/nginx.list`:
    ```
    deb http://nginx.org/packages/ubuntu/ precise nginx
    deb-src http://nginx.org/packages/ubuntu/ precise nginx
  3. @hdyen hdyen revised this gist Feb 24, 2015. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions nginx+uWSGI.md
    Original 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
  4. @hdyen hdyen revised this gist Feb 10, 2015. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion nginx+uWSGI.md
    Original 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
    service nginx restart
    ```
  5. @hdyen hdyen created this gist Feb 9, 2015.
    13 changes: 13 additions & 0 deletions nginx+uWSGI.md
    Original 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