码迷,mamicode.com
首页 >  
搜索关键字:openresty lua vanilla    ( 4763个结果
推荐几个我近期排查线上http接口偶发415时用到的工具
导读:近期有一个业务部门的同学反馈说他负责的C工程在小概率情况下SpringMvc会返回415,通过输出的日志可以确定是SpringMvc找不到content-type这个头了,具体为什么找不到了呢?请听我娓娓道来。 关键词:http 415,SpringMvc,nginx,lua,wireshar ...
分类:Web程序   时间:2019-10-05 18:49:49    阅读次数:148
lua相关随笔
例1 xlua.hotfix(CS.CS_test,'Fun_pamaras',function(self,num) print("lua带参数的方法",num) end) 例2 local util = require 'util'; util.hotfix_ex(CS.CS_test,'Fun1 ...
分类:其他好文   时间:2019-10-05 14:33:19    阅读次数:84
openresty下提示nginx:…unknown directive "content_by_lua_block"
照着文档(http://openresty.org/cn/getting-started.html)的提示写个openresty的helloworld,运行 nginx -p `pwd`/ -c conf/nginx.conf 时出现:…unknown directive "content_by_l ...
分类:其他好文   时间:2019-10-04 11:38:07    阅读次数:452
centos 7 源码安装openresty
Openresty 官网 http://openresty.org Openresty源码下载页面 http://openresty.org/en/download.html Openresty 简易安装说明页面 http://openresty.org/en/installation.html 安 ...
分类:其他好文   时间:2019-10-02 14:44:10    阅读次数:115
WRK的使用-lua脚本POST请求(静态数据)
HTTP_prot = { "/gateway/services", "/gateway/services", } --接口类型 HTTP_type = { "POST", "POST", } --参数 HTTP_body = { '{"phone": "19012000335"}', '{"pho ...
分类:其他好文   时间:2019-10-02 11:06:31    阅读次数:205
WRK的使用-lua脚本GET请求
原理:在脚本开始之前将准备好的数据添加至数组内,每次请求根据顺序调用 wrk.method = "GET" -- 循环列表 local queries = { -- API与参数 "/app/getConDetails?ConttId=38163230&Type=2", "/app/getContD ...
分类:其他好文   时间:2019-10-02 10:52:21    阅读次数:392
3-OpenResty 配置PHP
https://www.cnblogs.com/yangfengwu/p/11610728.html 由于咱以前是用PHP做的东西,又不想重新用 OpenResty自带的编写,所以呢咱设置下,可以像以前Apache那样访问PHP文件 还记得咱当时怎么安装的PHP不 https://www.cnblo ...
分类:Web程序   时间:2019-09-30 10:02:45    阅读次数:172
4-OpenResty 配置 https 访问
https://www.cnblogs.com/yangfengwu/p/11610760.html 首先是下载证书 还记得咱这节不 https://www.cnblogs.com/yangfengwu/p/10766051.html 因为咱用的 Nginx 所以 修改这个 好现在重启下 测试下 h ...
分类:Web程序   时间:2019-09-30 09:47:58    阅读次数:115
2-OpenResty 安装使用(Windows)
https://www.cnblogs.com/yangfengwu/p/11610576.html 下载 OpenResty http://openresty.org/cn/download.html 由于以前安装的Apache ,所以现在停止Apache, 咱以后就不用Apache了 双击启动 ...
分类:Windows程序   时间:2019-09-30 09:38:19    阅读次数:163
在PHP中使用redis来操作lua脚本,使用$redis->eval()命令时出错,参数传递无效
使用$redis->eval命令时传递三个参数,第一个为lua脚本文件,第二个为key,第三个参数为key的个数向lua中传递参数时,在key中定义好,即可,示例正确代码 ...
分类:Web程序   时间:2019-09-29 16:57:31    阅读次数:134
4763条   上一页 1 ... 41 42 43 44 45 ... 477 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!