Skip to content

Instantly share code, notes, and snippets.

@tarrex
Created September 4, 2015 12:18
Show Gist options
  • Save tarrex/f004af73c16c1bebbb1d to your computer and use it in GitHub Desktop.
Save tarrex/f004af73c16c1bebbb1d to your computer and use it in GitHub Desktop.
wget https://openresty.org/download/ngx_openresty-1.9.3.1.tar.gz
tar zxvf ngx_openresty-1.9.3.1.tar.gz
cd ngx_openresty-1.9.3.1
yum install postgresql-devel # If you use '--with-http_postgres_module' option.
./configure --prefix=/opt/openresty \
--with-luajit \
--with-pcre-jit \
--with-ipv6 \
--without-http_redis2_module \
--with-http_iconv_module \
--with-http_postgres_module \
-j2
make
make install
cd .. && rm -rf ngx_openresty-1.9.3.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment