在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
1、安装LuaJIT,LuaJIT为LuaJIT is a Just-In-Time Compiler (JIT) for the Lua programming language wget http://luajit.org/download/LuaJIT-2.0.5.tar.gz tar -zxvf LuaJIT-2.0.5.gz && cd LuaJIT-2.0.5 make && make install PREFIX=/usr/local/luajit export LUAJIT_LIB=/usr/local/luajit/lib 2、下载ngx_devel_kit、和lua-nginx-module wget https://github.com/simplresty/ngx_devel_kit/archive/v0.3.1rc1.tar.gz tar -xzvf ngx_devel_kit-0.3.1rc1.tar.gz wget https://github.com/openresty/lua-nginx-module/archive/v0.10.14rc3.tar.gz tar -xzvf v0.10.14rc3.tar.gz 按前一篇文章的步骤重新编译nginx即可,RedHat 6.6下安装nginx,配置HTTPS,注意在configure时候新增参数 ./configure --sbin-path=/usr/local/sbin --with-http_stub_status_module --with-http_ssl_module --with-threads --with-stream --add-module=/root/ngx_devel_kit-0.3.1rc1 --add-module=/root/lua-nginx-module-0.10.14rc3 make -j4 && make install 启动nginx,如果有这个报错:nginx: error while loading shared libraries: libluajit-5.1.so.2: cannot open shared object file: No such file or directory 可以通过这样的方式来解决 vi /etc/ld.so.conf 新增一条 /usr/local/luajit/lib 保存文件,执行ldconfig ,即可。 |
请发表评论