原文:lua启用lua-resty-core

lua resty core 是把 lua nginx module 已有的部分 API,使用 FFI 的模式重新实现了一遍。 使用FFI实现的代码更为简洁易懂,而且因为可以被JIT追踪和优化,性能更高。 启动lua resty core的方式也很简单,只需要在 init by lua 阶段,增加一行代码就可以了: lua resty core高效的原因是因为其能被JIT追踪和优化,所以,如果所写 ...

2020-04-27 20:48 0 1262 推荐指数:

查看详情

lua resty template && openresty 使用

1. 安装 luarocks install lua-resty-template 2. 使用 配置模板页面位置 有多种方式: a. 直接使用root 目录 代码 ...

Wed Apr 05 05:41:00 CST 2017 0 2739
lua-resty-kafka配置文档

参考网址:https://github.com/doujiang24/lua-resty-kafka 一、例子 content_by_lua ' -- 引入lua所有api local cjson = require "cjson ...

Mon Sep 02 22:20:00 CST 2019 0 402
lua-resty-websocket安装和测试

作者:杨鑫奇 关注Openresty很久了,期待支持websocket终于出来了,看到Aapo Talvensaari同学写的文章https://medium.com/p/1778601c9e05, ...

Fri Sep 20 17:08:00 CST 2013 0 11541
OpenResty 扩展库之(一)——lua-resty-shell 库

介绍   当您需要执行子进程(或shell命令)时,这是一个打算与OpenResty应用程序一起使用的小型库。 它类似于os.execute和io.popen,除了它是完全非阻塞的,因此即使对于需要 ...

Fri May 05 05:17:00 CST 2017 0 3809
openresty 使用lua-resty-shell 执行shell 脚本

lua-resty-shell 是一个很不错的项目,让我们可以无阻塞的执行shell命令,之间的通信 是通过socket (一般是unix socket) 环境准备 docker-compose 文件 dockerfile ...

Fri Dec 07 04:50:00 CST 2018 0 1883
lua

Lua 这个脚本语言一般都用来干什么,有什么优点?https://www.zhihu.com/question/20296452 http://www.lua.org/start.html http://www.lua.org/pil/ http://www.lua.org/pil ...

Thu Sep 30 00:20:00 CST 2021 0 134
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM