- perl 5.6.1+
- libreadline
- libpcre
- libssl
1 | apt-get install libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make |
1 | yum install readline-devel pcre-devel openssl-devel gc-c++ |
1 | wget http://openresty.org/download/ngx_openresty-1.5.8.1.tar.gz. |
1 2 3 4 5 |
tar xzvf ngx_openresty-1.5.8.1.tar.gz cd ngx_openresty-1.5.8.1/ ./configure --with-luajit make make install |
1 2 3 4 5 6 7 |
./configure --prefix=/opt/openresty --with-luajit --without-http_redis2_module --with-http_iconv_module --with-http_postgres_module -j2 --help to see more options |
----------不定期更新------------