- 博客(10)
- 收藏
- 关注
转载 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...
2016-01-17 11:26:00
109
转载 OpenResty之子查询
1.子查询是什么 location /lua { content_by_lua ' local res = ngx.location.capture("/some_other_location") if res.stat...
2016-01-17 11:24:00
143
转载 OpenResty之FFI和第三方模块
1.luajit FFIFFI允许lua调用C。可以参考安装目录下的resty目录(openresty/lualib/resty)实现的Rand函数实现,其实是用c的。2.增加第三方模块2.1.查找:例如:搜索resty http2.2.添加模块:将下载的第三方库文件放在resty目录...
2016-01-17 11:21:00
310
转载 OpenResty之缓存
1.OpenResty有两种缓存方式,分别是shared_dict和lua-resty-lrucache2.shared_dict(字典缓存)方式第一步:在nginx.conf里面添加配置: lua_shared_dict my_cache 128m; ...
2016-01-17 11:18:00
845
转载 OpenResty之连接数据库
1.连接OpenResty的nginx.conf配置worker_processes 1;events { worker_connections 1024;}http { include mime.types; default_type app...
2016-01-10 00:42:00
601
转载 OpenResty之ngx lua API介绍
1.ngx lua学习资源ngx lua有40多个指令,120多个API,访问链接官网和github地址2.编辑nginx.confworker_processes 1;events { worker_connections 1024;}http { inclu...
2016-01-03 23:06:00
284
转载 OpenResty之入门
1.配置nginx.confworker_processes 1;events { worker_connections 1024;}http { include mime.types; default_type application/oct...
2016-01-03 23:01:00
99
转载 OpenResty之Hello World
1.配置nginx.confworker_processes 1;events { worker_connections 1024;}http { include mime.types; default_type application/oc...
2016-01-02 19:03:00
129
转载 Centos 安装 OpenResty
环境:vagrant中的centos6.7[vagrant@localhost bin]$ cat /etc/system-releaseCentOS release 6.7 (Final)[vagrant@localhost bin]$ uname -aLinux localh...
2016-01-01 13:31:00
91
转载 centos6.7 安装 Python3.5
环境:vagrant中的centos6.7[vagrant@localhost bin]$ cat /etc/system-releaseCentOS release 6.7 (Final)[vagrant@localhost bin]$ uname -aLinux localh...
2016-01-01 10:07:00
72
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人