Skip to content

Instantly share code, notes, and snippets.

@Mothirajha
Created January 1, 2016 18:12
Show Gist options
  • Save Mothirajha/33b79ab6953c7fbd1725 to your computer and use it in GitHub Desktop.
Save Mothirajha/33b79ab6953c7fbd1725 to your computer and use it in GitHub Desktop.

Revisions

  1. @gknapp gknapp revised this gist Dec 18, 2011. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions nginx-osx-install.sh
    Original file line number Diff line number Diff line change
    @@ -7,14 +7,14 @@ cd /usr/local/src
    tar xzvf pcre-8.20.tar.gz
    cd pcre-8.20
    ./configure --prefix=/usr/local
    make && sudo make install
    make && sudo make install && make clean
    cd ..

    # copy nginx to directory
    tar xzvf nginx-1.0.11.tar.gz
    cd nginx-1.0.11
    ./configure --prefix=/usr/local --with-http_ssl_module
    make && sudo make install
    make && sudo make install && make clean
    # edit your PATH variable, make sure it include /usr/local/sbin
    vim ~/.profile
    . ~/.profile
  2. @gknapp gknapp created this gist Dec 18, 2011.
    24 changes: 24 additions & 0 deletions nginx-osx-install.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    # download PCRE and nginx source

    sudo mkdir -p /usr/local/src
    cd /usr/local/src
    # copy PCRE to directory
    # eg. cp /tmp/pcre-8.20.tar.gz /usr/local/src/
    tar xzvf pcre-8.20.tar.gz
    cd pcre-8.20
    ./configure --prefix=/usr/local
    make && sudo make install
    cd ..

    # copy nginx to directory
    tar xzvf nginx-1.0.11.tar.gz
    cd nginx-1.0.11
    ./configure --prefix=/usr/local --with-http_ssl_module
    make && sudo make install
    # edit your PATH variable, make sure it include /usr/local/sbin
    vim ~/.profile
    . ~/.profile
    which nginx

    # start nginx
    sudo nginx