Last active
October 5, 2015 10:18
-
-
Save outsideris/2792854 to your computer and use it in GitHub Desktop.
compiling nginx
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
| $ sudo apt-get install gcc | |
| # or build-essential | |
| $ sudo apt-get install libpcre3 libpcre3-dev | |
| $ sudo apt-get install zlib1g zlib1g-dev | |
| $ sudo apt-get install libssl-dev | |
| $ ./configure --prefix=/usr/local/lib/nginx/nginx-1.2.0 \ | |
| --conf-path=/etc/nginx/nginx.conf \ | |
| --error-log-path=/var/log/nginx/error.log \ | |
| --http-log-path=/var/log/nginx/access.log \ | |
| --with-http_ssl_module \ | |
| --with-http_stub_status_module \ | |
| --user=outsider | |
| $ sudo make | |
| $ sudo make install |
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
| $ wget http://nginx.org/download/nginx-1.3.15.tar.gz | |
| $ tar xzvf nginx-1.3.15.tar.gz | |
| $ cd nginx-1.3.15 | |
| $ ./configure --with-http_spdy_module \ | |
| --with-http_ssl_module \ | |
| --pid-path=/var/run/nginx.pid \ | |
| --conf-path=/etc/nginx/nginx.conf \ | |
| --sbin-path=/usr/local/sbin/nginx \ | |
| --http-log-path=/var/log/nginx/access.log \ | |
| --error-log-path=/var/log/nginx/error.log \ | |
| --without-http_rewrite_module |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment