原文:lua-resty-websocket安装和测试

作者:杨鑫奇 关注Openresty很久了,期待支持websocket终于出来了,看到Aapo Talvensaari同学写的文章https: medium.com p c e ,兴奋下也来测试下,之前用websocket做即时通讯,还是基于socket.io的例子,现在用nginx来做...初尝试下,竟然报错了,章哥的解答在这里:https: github.com agentzh lua res ...

2013-09-20 09:08 0 11541 推荐指数:

查看详情

lua resty template && openresty 使用

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

Wed Apr 05 05:41:00 CST 2017 0 2739
lua启用lua-resty-core

lua-resty-core 是把 lua-nginx-module 已有的部分 API,使用 FFI 的模式重新实现了一遍。 使用FFI实现的代码更为简洁易懂,而且因为可以被JIT追踪和优化,性能更高。 启动lua-resty-core的方式也很简单,只需要在 init_by_lua 阶段 ...

Tue Apr 28 04:48:00 CST 2020 0 1262
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
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
openresty lua-resty-string md5 sha aes random string

安装 https://github.com/openresty/lua-resty-string 可以看出目录下多出了这几个文件:aes.lua md5.lua random.lua sha.lua sha1.lua sha224.lua sha256.lua sha384.lua ...

Tue Sep 17 05:41:00 CST 2019 0 701
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM