ngx_openresty-1.7.7.2/bundle目录里存放着nginx核心和很多第三方模块,比如有我们需要的Lua和LuaJIT。 3、安装LuaJIT cd bundle/LuaJIT-2.1-20150120/ make clean && make && make install ln -sf luajit-2.1.0-alpha /usr/local/bin/luajit 4、下载
cd nginx-1.15.0exportLUAJIT_LIB=/usr/local/openresty/lualib/exportLUAJIT_INC=/usr/local/openresty/luajit/include/luajit-2.1/ 重新编译nginx ./configure --prefix=/usr/local/nginx --with-cc-opt=-O2--add-module=/root/openresty-1.13.6.1/bundle/ngx_devel_kit-0.3.0--add-module=/root/openres...
Cd /webapp/openresty/nginx/sbin ./nginx -V ⑸ 安装ngx_lua_waf-master模块 将ngx_lua_waf-master里的文件拷贝到openresty的nginx/conf/waf目录下 Mv /tmp/ngx_lua_waf-master/* /webapp/openresty/nginx/conf/waf 在nginx.conf的http段添加 lua_package_path "/webapp/openresty/nginx/conf/waf/?.lua";...
3、安装lua-redis-parser,lua-resty-redis是openresty(1.9.15.1)的一个组件,简单来说,它提供一个lua语言版的redis API,使用socket(lua sock)和redis通信。 //下载源码包: gitclonehttps:///openresty/lua-resty-redis.git 1. 2. 移动该源码包到/usr/local/nginx/lua/ 这里去 mv lua-resty-redis /usr/loc...
3、安装lua-redis-parser,lua-resty-redis是openresty(1.9.15.1)的一个组件,简单来说,它提供一个lua语言版的redis API,使用socket(lua sock)和redis通信。 //下载源码包: gitclonehttps://github.com/openresty/lua-resty-redis.git 移动该源码包到/usr/local/nginx/lua/ 这里去 ...
git地址:https://github.com/bigplum/nginx-tcp-lua-module openresty 本身是使用http协议进行通讯的, 但是项目中经常有要求输入是使用tcp协议,输出是使用http协议, 这时,输入是tcp协议,就需要使用nginx_tcp模块 如何把nginx_tcp模块集成到openresty中呢
3、安装lua-redis-parser,lua-resty-redis是openresty(1.9.15.1)的一个组件,简单来说,它提供一个lua语言版的redis API,使用socket(lua sock)和redis通信。 //下载源码包: gitclonehttps://github.com/openresty/lua-resty-redis.git 移动该源码包到/usr/local/nginx/lua/ 这里去 ...
3、lua-nginx-module 下载。可在 Nginx 中嵌入 Lua 语言,让 Nginx 可以支持 Lua 强大的语法。 wget https:///openresty/lua-nginx-module/archive/v0.10.7.tar.gz tar -zxvf v0.10.7.tar.gz 1. 2. 4、redis2-nginx-module 下载。是一个支持 Redis 2.0 协议的 Nginx upstream 模块,它可以让 Nginx 以...