openresty.sh 391 B

123456789101112
  1. #!/bin/bash
  2. RETCODE=$(fw_exists /usr/local/openresty/nginx/sbin/nginx)
  3. [ ! "$RETCODE" == 0 ] || { return 0; }
  4. fw_depends nginx
  5. fw_get http://openresty.org/download/ngx_openresty-1.5.12.1.tar.gz
  6. fw_untar ngx_openresty-1.5.12.1.tar.gz
  7. cd ngx_openresty-1.5.12.1
  8. ./configure --with-luajit-xcflags=-DLUAJIT_NUMMODE=2 --with-cc-opt=-O2 --with-http_postgres_module -j2
  9. make -j2
  10. sudo make install