Created
April 3, 2016 23:04
-
-
Save christopher-baek/c0feb9f54f4c57a7aee9a1efd1e5e18e to your computer and use it in GitHub Desktop.
Install NGINX Without Root
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 characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks 👍