会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
理舞
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
30
下一页
2023年4月12日
centos7部署nodejs脚本
摘要: 在服务器运行nodejs脚本中,遇到三个问题,进行记录 1. 用到sharp依赖,但是在服务器上安装不成功,依赖会从github上下载不下来 解决:设置使用sharp对应的镜像地址 npm config set sharp_binary_host "https://npmmirror.com/mir
阅读全文
posted @ 2023-04-12 14:26 理舞
阅读(88)
评论(0)
推荐(0)
2022年9月15日
nginx扩展
摘要: nginx扩展 1. nginxconfig.io 直接浏览器中访问nginxconfig.io会重定向到https://www.digitalocean.com/community/tools/nginx?global.app.lang=zhCN,在这个里面可以进行配置,然后下载使用,在这个网站上
阅读全文
posted @ 2022-09-15 09:23 理舞
阅读(131)
评论(0)
推荐(0)
2022年8月30日
18.压缩图片
摘要: 语法 读取图片,并进行质量压缩,语法imwrite(filename, img, params=None) 注意 注意这里的params,是(paramId_1, paramValue_1, paramId_2, paramValue_2, ... .)这种写法,其中paramId需要去查,针对图片
阅读全文
posted @ 2022-08-30 09:11 理舞
阅读(37)
评论(0)
推荐(0)
2022年8月6日
nginx设置正向代理
摘要: 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 理舞
阅读(1813)
评论(0)
推荐(0)
2022年8月4日
nginx代理mysql(模块stream)
摘要: 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 理舞
阅读(4411)
评论(0)
推荐(0)
2022年8月2日
nginx安装modsecurity WAF防火墙
摘要: 测试使用的地址 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 理舞
阅读(795)
评论(0)
推荐(0)
2022年7月29日
nginx测试验证
摘要: 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 理舞
阅读(849)
评论(0)
推荐(0)
2022年7月28日
nginx配置示例
摘要: 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 理舞
阅读(80)
评论(0)
推荐(0)
2022年7月23日
漏洞修复
摘要: 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 理舞
阅读(305)
评论(0)
推荐(0)
2022年7月21日
nginx-echo模块安装
摘要: 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 理舞
阅读(883)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
30
下一页