Created
May 6, 2015 04:56
-
-
Save nojima/a3cea306b42b1731a034 to your computer and use it in GitHub Desktop.
nginx build script for my ubuntu server
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
#!/bin/sh -ex | |
cd $(dirname $0) | |
if [ -f Makefile ]; then | |
make clean | |
fi | |
./configure \ | |
--with-cc-opt="-O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2" \ | |
--with-ld-opt="-Wl,-Bsymbolic-functions -Wl,-z,relro" \ | |
--prefix=/usr/local \ | |
--conf-path=/etc/nginx/nginx.conf \ | |
--http-log-path=/var/log/nginx/access.log \ | |
--error-log-path=/var/log/nginx/error.log \ | |
--lock-path=/var/lock/nginx.lock \ | |
--pid-path=/run/nginx.pid \ | |
--http-client-body-temp-path=/var/lib/nginx/body \ | |
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \ | |
--http-proxy-temp-path=/var/lib/nginx/proxy \ | |
--http-scgi-temp-path=/var/lib/nginx/scgi \ | |
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi \ | |
--with-http_ssl_module \ | |
--with-http_stub_status_module \ | |
--with-http_gzip_static_module \ | |
--with-http_spdy_module \ | |
--build=$USER | |
make -j4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment