首页 > 代码库 > nginx多域名ssl证书以及lua模块的编译安装
nginx多域名ssl证书以及lua模块的编译安装
#!/bin/bash #unzip zip&tar file function untarfile(){ for i in $( ls . |grep -v .sh) do val=$(echo $i | grep ".zip$" |wc -l) if [[ "$val" -eq 1 ]];then dirname=$(echo $i|sed "s/.zip//") if [[ ! -d $dirname ]];then echo "Unzip file: $dirname..." unzip $i > /dev/null fi else dirname=$(echo $i|sed "s/.tar.gz//") if [[ ! -d $dirname ]];then tar -zxvf $i > /dev/null echo "Tar file: $dirname..." fi fi done sleep 2 echo "[ unzip files ] have finished!" } #untarfile #install all function installLua (){ #LuaJIT if [[ ! -d /usr/local/lj2/ ]];then cd LuaJIT-2.0.2 make PREFIX=/usr/local/lj2/ make install PREFIX=/usr/local/lj2/ else echo "[ /usr/local/lj2/ ]: Directory have exists,exit!" fi echo "[ install LuaJIT ] have finished!" sleep 2 } function installnginx (){ if [[ ! -d /usr/local/nginx ]];then cd 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=../o penssl-1.0.1i --add-module=../ngx_devel_kit-0.2.19 --add-module=../lua-nginx-module-0.9.10 make make -j2 make install echo "/usr/local/lj2/lib/" > /etc/ld.so.conf.d/lj2.conf ldconfig else echo "[ /usr/local/nginx ]: Directory have exists,exit!" fi echo "[ install nginx ] have finished!" sleep 2 } untarfile installLua installnginx
最新源码 包以及安装脚本位置: nginx的ssl和lua模块相关包
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。