#! /Bin/bash # unzip zip & tar filefunction untarfile () {for I in $ (LS. | grep-v. SH) doval = $ (echo $ I | grep ". zip $ "| WC-l) If [[" $ Val "-EQ 1]; thendirname = $ (echo $ I | sed" s /. zip // ") if [[! -D $ dirname]; thenecho "Unzip file: $ dirname... "Unzip $ I>/dev/nullfielsedirname = $ (echo $ I | sed" s/.tar.gz // ") if [[! -D $ dirname]; thentar-zxvf $ I>/dev/nullecho "tar file: $ dirname..." fifidonesleep 2 Echo "[unzip files] have finished! "} # Untarfile # Install allfunction installlua () {# luajitif [[! -D/usr/local/lj2/]; thencd LuaJIT-2.0.2make prefix =/usr/local/lj2/make install prefix =/usr/local/lj2/elseecho "[/usr/local/lj2/]: Directory have exists, exit! "Fiecho" [install luajit] have finished! "Sleep 2} function installnginx () {if [[! -D/usr/local/nginx]; thencd nginx-1.6.1. /configure -- prefix =/usr/local/nginx -- with-http_ssl_module -- with-http_gzip_static_module -- with-http_stub_status_module -- without-select_module -- without-poll_module -- With-OpenSSL = .. /openssl-1.0.1i -- add-module = .. /ngx_devel_kit-0.2.19 -- add-module = .. /lua-nginx-module-0.9.10makemake-j2make installecho "/usr/local/lj2/lib/">/etc/lD. so. conf. d/lj2.confld Configelseecho "[/usr/local/nginx]: Directory have exists, exit! "Fiecho" [install nginx] have finished! "Sleep 2} untarfileinstallluainstallnginx
Latest source code package and installation script location: nginx SSL and Lua module package