Openresty
共 2 篇文章
Lua Mysql连接池
--[[ 使用方法: local mysql = require "mysql_pool" local ret, res, sqlstate = mysql:query(sql, true); local tmp if ret then tmp = cjson.encode(res) else ngx.say("error") end --]] --[[ 注意事项: 1. 启用连接池需要开启 lua_code_cache on 2. 测试连接池时,线程数需要小于set_keepalive中的第二个参数(即连接数) 3. 根据程序里的SQL情况,设置set_timeout为适当的值(即连接超时…
在Openresty环境下搭建视频服务器
环境说明: 操作系统----CentOS7 安装过程(以下安装过程以root执行,目录假定在/opt): # cd /opt 安装必要的依赖库 # yum install -y zlib # yum install -y pcre # yum install -y gcc gcc-c++ readline-devel pcre-devel openssl-devel tcl perl 安装drizzle7-2011.07.21 # wget http://openresty.org/download/drizzle7-2011.07.21.tar.gz -- 此处如果下载不了,可以搜索到文件…
2015-12-11 18:38 · nginx · Openresty · JWPlayer · nginx · JWPlayer