摘要: 1.打开浏览器:https://www.ipaddress.com/ 2.输入下载域名 3.将域名解析的ip地址,写入host文件中 C://windows//system32/drive/etc/host ip地址 域名 保存 这样就可以下载资源了。 阅读全文
posted @ 2021-01-04 16:39 SimpleSmile 阅读(441) 评论(0) 推荐(0)
摘要: 1 #注意,初始化 pip install pypiwin32 # 重新下载命令 : python -m pip install --upgrade pypiwin32 --force-reinstall 2 #如果是离线,则需要到pypiwin32官网下载文件,放入Python安装目录的Scrip 阅读全文
posted @ 2020-12-28 10:28 SimpleSmile 阅读(693) 评论(0) 推荐(0)
摘要: 1 -- 准许获取传参内容 2 3 ngx.req.read_body() 4 5 -- 获取传参内容参数 6 7 8 9 local args = ngx.req.get_body_data() 10 11 local cjson = require("cjson"); 12 13 14 15 - 阅读全文
posted @ 2020-12-28 08:53 SimpleSmile 阅读(1167) 评论(0) 推荐(0)
摘要: -- 准许获取传参内容 ngx.req.read_body() -- 获取传参内容参数 local args = ngx.req.get_body_data() for v in string.gmatch(args, '正则表达式') do -- 打印 正则表达式匹配的内容 print("from 阅读全文
posted @ 2020-12-28 08:50 SimpleSmile 阅读(381) 评论(0) 推荐(0)
摘要: 现在很多基于百度的nginx 防止sql注入都是get方式,如果post就没有了. 坑点: 1.$query_string 获取get请求的数据 2.$request_body 获取post请求的数据,但是这里如果对$request_body进行校验,则为空!!!!!!!!!! 所以这个方式不可行. 阅读全文
posted @ 2020-12-21 16:57 SimpleSmile 阅读(4534) 评论(2) 推荐(0)
摘要: 环境:springboot 2.4.0 1.添加依赖 <dependency> <groupId>com.alicp.jetcache</groupId> <artifactId>jetcache-starter-redis</artifactId> <version>2.6.0</version> 阅读全文
posted @ 2020-12-17 15:26 SimpleSmile 阅读(1519) 评论(0) 推荐(0)
摘要: 环境:springboot 2.4.0 1.添加依赖 <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-crypto</artifactId> <version>5.5.4</version> </dependency> 2.初 阅读全文
posted @ 2020-12-17 15:20 SimpleSmile 阅读(7356) 评论(0) 推荐(0)
摘要: 基于sprigboot的日志模板 <?xml version="1.0" encoding="UTF-8"?> <!-- For assistance related to logback-translator or configuration --> <!-- files in general, 阅读全文
posted @ 2020-12-15 15:02 SimpleSmile 阅读(611) 评论(0) 推荐(0)
摘要: docker run --name definedName(自定义容器名称) -p 8080:8080(端口映射 本机端口: docker端口 ) -p 8081:8081 -p .... -d imagesName(镜像名称) 阅读全文
posted @ 2020-12-15 11:40 SimpleSmile 阅读(18894) 评论(0) 推荐(0)
摘要: 1.系统 centos 2.cp zk/conf/zoo_sample.cfg zk/conf/zoo.cfg 3.修改 zoo.cfg中 的datadir目录地址 4.zk/bin/zkServer.sh start 5.zk/bin/zkServer.sh status 提示未启动 6.查看日志 阅读全文
posted @ 2020-12-10 11:15 SimpleSmile 阅读(290) 评论(0) 推荐(0)