原文:ngx_lua_API 指令详解(一)ngx.timer.at 指令

语法: ok,err ngx.timer.at delay,callback,user arg ,user arg ... 上下文: init worker by lua ,set by lua ,rewrite by lua ,access by lua ,content by lua ,header filter by lua ,body filter by lua ,log by lua , ...

2017-05-04 23:30 0 4856 推荐指数:

查看详情

ngx_lua_API 指令详解(四)ngx.exec指令

https://github.com/openresty/lua-nginx-module#ngxexec 参照:http://blog.csdn.net/weiyuefei/article/details/38434797 在Nginx中实现重定向可以通过rewrite指令,具体可参考 ...

Tue Jun 13 22:41:00 CST 2017 0 6170
openresty的ngx.timer.at

openresty的ngx.timer.at真是个强大的方法。 例如某些函数不可以在一些NGINX的执行阶段使用时,可以ngx.timer.at API 创建一个零延迟的timer,在timer中去处理。 遇到一些高延迟的函数,因为定时调用是在后台运行,并且他们的执行不会增加任何客户端 ...

Sun Dec 31 03:04:00 CST 2017 0 1324
ngx_lua 模块

ngx_lua 模块 https://segmentfault.com/a/1190000012233483 nginx lua重置请求参数及常量备忘 Lua_Nginx_API ...

Fri Mar 08 00:25:00 CST 2019 0 1049
ngx_lua 随笔

--[[ test--]]ngx.header.content_type = "text/plain"; --输出头部local user = ngx.var.arg_user -- 定义user变量并获取url中的参数 http://localhost?user=hellolocal ...

Wed Feb 11 23:22:00 CST 2015 0 20633
ngx_lua 模块

ngx_lua模块的原理: 1、每个worker(工作进程)创建一个Lua VM,worker内所有协程共享VM;2、将Nginx I/O原语封装后注入 Lua VM,允许Lua代码直接访问;3、每个外部请求都由一个Lua协程处理,协程之间数据隔离;4、Lua代码调用I/O操作等异步接口 ...

Tue Mar 03 00:07:00 CST 2015 2 44223
tengine安装ngx_http_lua_module

从http://luajit.org/download.html下载的luajit来安装tengine上,启动时报错如下 先卸载原有luajit 然后从https:// ...

Thu Apr 18 04:25:00 CST 2019 0 1612
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM