2.1 只读示例 ./bin/sysbench test=/usr/share/sysbench/tests/include/oltp_legacy/oltp.lua \ mysql host=192.168.80.134 mysql port=3306 mysql user=root mysql ...
分类:
数据库 时间:
2019-10-10 10:59:19
阅读次数:
119
redis介绍 什么是redis? redis是一个高性能的key value 数据库 redis未授权访问 1. Redis因配置不当可以未授权访问。攻击者无需认证访问到内部数据,可导致敏感信息泄露,也可以恶意执行flushall来清空所有数据。 2. 攻击者可通过EVAL执行lua代码,或通过数 ...
分类:
其他好文 时间:
2019-10-09 12:35:01
阅读次数:
73
需求: nginx上将特定请求拒绝,并返回特定值。 解决办法: 使用lua脚本,实现效果。 操作步骤: 1. 安装Luajit环境 2. 重新编译nginx(原先nginx V 配置一致,并新增两个模块 ,`lua nginx module`) 3. 热升级(不中断服务) 配置文件添加lua脚本: ...
分类:
其他好文 时间:
2019-10-09 12:18:38
阅读次数:
137
一、前言 正向代理功能比较简单,但是原生nginx不支持https代理,如果访问https网站,会报错。 为了实现对https代理的支持,需要对原有nginx源码打补丁,就可以让nginx支持CONNECT模式了。 https://github.com/chobits/ngx_http_proxy_ ...
分类:
其他好文 时间:
2019-10-09 09:28:23
阅读次数:
95
http://blog.sina.com.cn/s/articlelist_1742179267_0_1.html ...
COIS 12036 Human Computer Interaction (HCI)Project B (Term 2 – 2019)Total marks: 45 marksProject B: TaskThe overall task is divided into two project p ...
分类:
其他好文 时间:
2019-10-07 19:53:57
阅读次数:
99
>>OpenResty<< >>Lua教程<< >>反向代理百度百科<< >>X-WAF配置指南<< ...
分类:
其他好文 时间:
2019-10-06 00:00:53
阅读次数:
104
导读:近期有一个业务部门的同学反馈说他负责的C工程在小概率情况下SpringMvc会返回415,通过输出的日志可以确定是SpringMvc找不到content-type这个头了,具体为什么找不到了呢?请听我娓娓道来。 关键词:http 415,SpringMvc,nginx,lua,wireshar ...
分类:
Web程序 时间:
2019-10-05 18:49:49
阅读次数:
148
例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
照着文档(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