上一页 1 2 3 4 5 6 ··· 30 下一页
摘要: 在服务器运行nodejs脚本中,遇到三个问题,进行记录 1. 用到sharp依赖,但是在服务器上安装不成功,依赖会从github上下载不下来 解决:设置使用sharp对应的镜像地址 npm config set sharp_binary_host "https://npmmirror.com/mir 阅读全文
posted @ 2023-04-12 14:26 理舞 阅读(52) 评论(0) 推荐(0) 编辑
摘要: nginx扩展 1. nginxconfig.io 直接浏览器中访问nginxconfig.io会重定向到https://www.digitalocean.com/community/tools/nginx?global.app.lang=zhCN,在这个里面可以进行配置,然后下载使用,在这个网站上 阅读全文
posted @ 2022-09-15 09:23 理舞 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 语法 读取图片,并进行质量压缩,语法imwrite(filename, img, params=None) 注意 注意这里的params,是(paramId_1, paramValue_1, paramId_2, paramValue_2, ... .)这种写法,其中paramId需要去查,针对图片 阅读全文
posted @ 2022-08-30 09:11 理舞 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 1. 正向代理服务器上不能访问网络时候设置 1.1编辑DNS配置文件 vi /etc/resolv.conf 1.2 添加DNS配置 # 设置互联网的域名解析,如果是虚拟机,可以设置为你的网关地址,比如192.168.52.2(vmware的网关地址) nameserver 114.114.114. 阅读全文
posted @ 2022-08-06 08:29 理舞 阅读(1674) 评论(0) 推荐(0) 编辑
摘要: 1. 安装stream模块 nginx默认不会编译stream模块的,需要在编译的时候,指定--with-stream ./configure --prefix=xxx --add-module=xxxx --add-module=xxx --with-stream 2. nginx配置代理mysq 阅读全文
posted @ 2022-08-04 17:39 理舞 阅读(3856) 评论(0) 推荐(0) 编辑
摘要: 测试使用的地址 http://192.168.52.120/static/index.html?param="><script>alert(1);</script>" http://192.168.52.120/static/index.html?param delete from user 扩展知 阅读全文
posted @ 2022-08-02 16:03 理舞 阅读(652) 评论(0) 推荐(0) 编辑
摘要: nginx验证内容: 1. 请求 IP:PORT/abc和IP:PORT/abc/对应的uri分别是什么 IP:PORT/abc 对应的uri为/abc IP:PORT/abc/ 对应的uri为/abc/ 2. 请求 IP:PORT/abc/def?name=theorydance#login 的u 阅读全文
posted @ 2022-07-29 15:43 理舞 阅读(771) 评论(0) 推荐(0) 编辑
摘要: user nginx; worker_processes 4; error_log /var/log/nginx/error_dq.log warn; pid /var/run/nginx_dq.pid; events { worker_connections 4096; } http { incl 阅读全文
posted @ 2022-07-28 13:57 理舞 阅读(51) 评论(0) 推荐(0) 编辑
摘要: SSL/TLS协议信息泄露漏洞(CVE-2016-2183)【原理扫描】 处理:ssl_ciphers HIGH:!aNULL:!MD5:!3DES; 这里面禁用DES SSL/TLS Bar Mitzvah Attack漏洞(CVE-2015-2808) 处理:服务器端禁止使用RC4加密算法,在s 阅读全文
posted @ 2022-07-23 16:37 理舞 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 1. 介绍 在nginx默认中,是没有echo模块的,在nginx.conf文件中存在echo会报错,需要安装echo模块。 2. 下载echo-nginx模块 下载链接:https://github.com/openresty/echo-nginx-module/ 将下载的tar.gz压缩包解压 阅读全文
posted @ 2022-07-21 08:41 理舞 阅读(700) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 30 下一页