Created
May 9, 2012 14:26
-
-
Save abhinavsingh/2644878 to your computer and use it in GitHub Desktop.
nginx installation
This file contains 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
## dependencies | |
sudo apt-get install libpcre3-dev zlib1g-dev libssl-dev | |
## user/group config | |
sudo groupadd nginx | |
sudo useradd -M --gid nginx nginx | |
## configure and install | |
./configure --prefix=/usr --user=nginx --group=nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --http-client-body-temp-path=/var/tmp/nginx/client --http-proxy-temp-path=/var/tmp/nginx/proxy --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi --http-scgi-temp-path=/var/tmp/nginx/scgi --with-http_ssl_module | |
make | |
sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment