Last active
October 19, 2016 05:09
-
-
Save tkuchiki/31c13dbe924b0875ac0fd1ea34c497cb to your computer and use it in GitHub Desktop.
nginx-build で Mac OSX に openresty をインストールする
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
mkdir -p /usr/local/src/nginx/modules /usr/local/openresty/{cache,luajit,sbin,bin,tmp} | |
brew install pcre openssl | |
cd /usr/local/src/nginx/modules | |
git clone https://github.com/cubicdaiya/ngx_dynamic_upstream | |
nginx-build -d /usr/local/src/nginx -openresty -c nginx.configure --verbose | |
cd /usr/local/src/nginx/openresty/1.11.2.1/openresty-1.11.2.1/ | |
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
./configure \ | |
--prefix=/usr/local/openresty \ | |
--with-cc-opt=-O2 \ | |
--with-ld-opt="-Wl,-rpath,/usr/local/openresty/luajit/lib -L/usr/local/opt/openssl/lib/ -L/usr/local/opt/pcre/lib/" \ | |
--with-cc-opt="-I/usr/local/opt/openssl/include/ -I/usr/local/opt/pcre/include/" \ | |
--conf-path=/usr/local/openresty/nginx.conf \ | |
--sbin-path=//usr/local/openresty/sbin/nginx \ | |
--http-log-path=/usr/local/openresty/log/nginx/access.log \ | |
--error-log-path=/usr/local/openresty/log/nginx/error.log \ | |
--pid-path=/usr/local/openresty/run/nginx.pid \ | |
--lock-path=/usr/local/openresty/lock/subsys/nginx \ | |
--http-client-body-temp-path=/usr/local/openresty/tmp/client_body \ | |
--http-proxy-temp-path=/usr/local/openresty/tmp/proxy \ | |
--http-fastcgi-temp-path=/usr/local/openresty/cache/fastcgi_temp \ | |
--http-uwsgi-temp-path=/usr/local/openresty/cache/uwsgi_temp \ | |
--http-scgi-temp-path=/usr/local/openresty/cache/scgi_temp \ | |
--user=nginx \ | |
--group=nginx \ | |
--with-http_v2_module \ | |
--with-ipv6 \ | |
--with-http_ssl_module \ | |
--with-http_realip_module \ | |
--with-http_addition_module \ | |
--with-http_xslt_module \ | |
--with-http_image_filter_module \ | |
--with-http_geoip_module \ | |
--with-http_sub_module \ | |
--with-http_dav_module \ | |
--with-http_flv_module \ | |
--with-http_mp4_module \ | |
--with-http_gzip_static_module \ | |
--with-http_random_index_module \ | |
--with-http_secure_link_module \ | |
--with-http_degradation_module \ | |
--with-http_stub_status_module \ | |
--with-http_gunzip_module \ | |
--with-http_auth_request_module \ | |
--with-mail \ | |
--with-mail_ssl_module \ | |
--add-module=/usr/local/src/nginx/modules/ngx_dynamic_upstream \ | |
-j8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment