原文:lua resty template && openresty 使用

. 安装 luarocks install lua resty template . 使用 配置模板页面位置 有多种方式: a. 直接使用root 目录 代码如下: location root html content by lua local template require resty.template template.render view.html , message Hello, W ...

2017-04-04 21:41 0 2739 推荐指数:

查看详情

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-shell 库

介绍   当您需要执行子进程(或shell命令)时,这是一个打算与OpenResty应用程序一起使用的小型库。 它类似于os.execute和io.popen,除了它是完全非阻塞的,因此即使对于需要很长时间完成的命令也是安全的。   该库依赖于您需要在Web服务器(sockproc)上运行 ...

Fri May 05 05:17:00 CST 2017 0 3809
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
openresty 集成lua-resty-mail +smtp2http 扩展灵活的mail 服务

lua-resty-mail 是一个不错的openresty mail 扩展,我们可以用来进行邮件发送,支持附件功能 smtp2http 是一个smtp 服务,可以将smtp 请求数据转换为http rest 请求,这个在我们的实际应用 中还是很方便的,比如需要mail 服务,但是我们需要进行 ...

Fri Jan 04 17:10:00 CST 2019 0 684
openresty开发系列24--openrestylua的引入及使用

openresty开发系列24--openrestylua的引入及使用openresty 引入 lua一)openresty中nginx引入lua方式 1)xxx_by_lua --->字符串编写方式 2) xxx_by_lua_block ---->代码块方式 ...

Fri Aug 30 19:52:00 CST 2019 0 1228
openresty + lua 4、openresty kafka

  kafka 官网: https://kafka.apache.org/quickstart   zookeeper 官网:https://zookeeper.apache.org/   kaf ...

Thu Nov 23 01:31:00 CST 2017 0 1234
OpenResty使用lua-zlib的方法

==================================================================1、查看 zlib在centos 中是否存在?rpm -qa | g ...

Wed Dec 31 15:29:00 CST 2014 0 5248
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM