加载中
OpenResty之执行阶段

执行阶段包括 set_by_lua、rewrite_by_lua、access_by_lua、content_by_lua、header_filter_by_lua、body_filter_by_lua、log_by_lua、 2.set_by_lua 做流程分支判断,判断变量初始化 3.re...

2016/01/17 11:26
318
OpenResty之子查询

1.子查询是什么 location /lua { content_by_lua ' local res = ngx.location.capture("/some_other_location") if res.status == 200 then ...

2016/01/17 11:24
208
OpenResty之FFI和第三方模块

1.luajit FFI FFI允许lua调用C。可以参考安装目录下的resty目录(openresty/lualib/resty)实现的Rand函数实现,其实是用c的。 2.增加第三方模块 2.1.查找:例如:搜索resty http 2.2.添加模...

OpenResty之缓存

1.OpenResty有两种缓存方式,分别是shared_dict和lua-resty-lrucache 2.shared_dict(字典缓存)方式 第一步:在nginx.conf里面添加配置: lua_shared_dict my_cache 128m; ...

2016/01/17 11:18
1W
OpenResty之连接数据库

OpenResty连接mysql、redis的基础知识,更加深入学习可以查看github及nginx的wiki......

2016/01/10 00:42
715
OpenResty之入门

1.配置nginx.conf worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile ...

2016/01/03 23:01
212
OpenResty之Hello World

Just first step! coding hello world!

2016/01/02 19:03
182

没有更多内容

加载失败,请刷新页面

没有更多内容

返回顶部
顶部