原文: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