随笔分类 - openresty
摘要:缘由 随着功能需求的深入, openresty领域的包已经不够用了, 需要lua领域本身累积的库, 也就是luarocks. 本文讲解了windows 10桌面和ubuntu server两套系统的方法 Ubuntu Server 比较简单, 无脑敲命令即可 安装luasql postgres my
阅读全文
摘要:`./lglob ~/ngx/lualib/mvc/ .lua 2 &1 | grep ' set '`
阅读全文
摘要:结果 {\\table: 0x40c39fa0 "num" : "345", "word": "cde", 0 : "12ab345cde", 1 : "12", 2 : "ab", 3 : "345", 4 : "cde", }
阅读全文
摘要:一. postgresql 数据库 安装 进入psql客户端 创建数据库,修改默认用户密码 参考:http://www.cnblogs.com/zhangpengshou/p/5464610.html 跨服务器复制数据库 参考:http://www.cnblogs.com/xiangnan/p/66
阅读全文
摘要:npm install -g forever forever start c9sdk/server.js --listen 0.0.0.0 --port 80 -a aa:111 -w ~ To elaborate, you can use something like forever2 to ru
阅读全文
摘要:``` ngx.re.match syntax: captures, err = ngx.re.match(subject, regex, options?, ctx?, res_table?) context: init_worker_by_lua*, set_by_lua*, rewrite_by_lua*, access_by_lua*, content_by_lua*, header_f...
阅读全文
摘要:``` Basics: 1. Ensure that you have not disabled Lua code cache:
https://github.com/openresty/lua-nginx-module#lua_code_cache 2. Load resty.core:
https://github.com/openresty/lua-resty-core#synopsi...
阅读全文
摘要:```
local function f( ... ) print('hello')
end
local x = string.dump(f, true)
loadstring(x)()
```
阅读全文
摘要:监听端 例如nginx或Python,php,rails等后端 git hooks端 位于.git/hooks/post merge, 表示发生merge(包含git pull)后的操作
阅读全文
摘要:https://trac.nginx.org/nginx/browser/nginx/src/core/ngx_parse.c
阅读全文
摘要:你以为会依次打印2,4,8吗? 错. 2,2,2 你以为打印1吗?,错,输出nil
阅读全文
摘要:意外概述 总的来说, 有时候需要手动加前缀 才能运行程序; 除非config的时候添加了 之类的. 不能单独设置log format, 必须一并设置时间格式. 前置 sudo apt get install libncursesw5 dev ~/.goaccessrc 符号含义见SPECIFIERS
阅读全文
摘要:参考链接 https://www.digitalocean.com/community/tutorials/initial server setup with ubuntu 14 04 初始化git http://www.cnblogs.com/xiangnan/p/5221089.html 初始化
阅读全文
摘要:https://github.com/openresty/lua nginx module ngxctx 要点 1. 生命周期和请求一致 2. 每个请求的ngx.ctx是相互独立的,包括ngx.location.capture的子请求 3. 内部跳转(Internal redirection)如ng
阅读全文
摘要:Network I/O operations in user code should only be done through the Nginx Lua API calls as the Nginx event loop may be blocked and performance drop of
阅读全文
摘要:https://developer.android.com/training/volley/request.html Request JSON Volley provides the following classes for JSON requests: JsonArrayRequest—A re
阅读全文
摘要:摘要自:https://github.com/openresty/lua-nginx-module/#data-sharing-within-an-nginx-worker 每nginx worker的数据共享 定义一个lua模块,在content_by_lua或者content_by_lua_bl
阅读全文

浙公网安备 33010602011771号