码迷,mamicode.com
首页 > 其他好文 > 详细

nginx lua模块安装

时间:2018-12-06 00:04:42      阅读:180      评论:0      收藏:0      [点我收藏+]

标签:add   for   nload   col   模块   target   div   efi   2.0   

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
export LUAJIT_INC=/usr/local/luajit/include/luajit-2.0

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时候新增参数

--add-module=/root/ngx_devel_kit-0.3.1rc1 --add-module=/opt/soft/lua-nginx-module-0.10.8

nginx lua模块安装

标签:add   for   nload   col   模块   target   div   efi   2.0   

原文地址:https://www.cnblogs.com/befer/p/10074141.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!