Skip to content

Instantly share code, notes, and snippets.

@christopher-baek
Created April 3, 2016 23:04
Show Gist options
  • Save christopher-baek/c0feb9f54f4c57a7aee9a1efd1e5e18e to your computer and use it in GitHub Desktop.
Save christopher-baek/c0feb9f54f4c57a7aee9a1efd1e5e18e to your computer and use it in GitHub Desktop.
Install NGINX Without Root
# create the directory structure for compiling source
mkdir -p ~/.local/src
cd ~/.local/src
# download pcre (could be in repository if root will install for you)
wget http://kent.dl.sourceforge.net/sourceforge/pcre/pcre-7.8.tar.gz
tar -xzvf pcre-7.8.tar.gz
# download nginx
wget http://nginx.org/download/nginx-1.8.1.tar.gz
tar -xzvf nginx-1.8.1.tar.gz
# compile and install it
cd nginx-1.8.1
./configure --prefix=~/.local/opt/nginx --with-pcre=~/.local/src/pcre-7.8
make
make install
@erlangparasu
Copy link

thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment