会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
望山远而力行
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
36
下一页
2024年3月19日
记录恶意SQL注入引发的RDS只读数据库CPU飚100%
摘要: 前言: 在广州这座城市下着小雨的晚上,我正在厨房洗着碗,突然手机有来电,脱下手套,一看是来自阿里云的告警电话。打开飞书查看告警内容,发现某个业务的RDS只读实例CPU飚到100%,下意识觉得是不是有慢查询导致,想着不会有啥问题,上去kill慢查就好了,结果发现是大问题....一、发现问题 2024年
阅读全文
posted @ 2024-03-19 00:39 lucky_tomato
阅读(167)
评论(0)
推荐(1)
2024年2月22日
MySQL基础知识
摘要: 1.导出指定表的数据 mysqldump -t database -u username -ppassword --tables table_name1 table_name2 table_name3 >D:\db_script.sql 2.导出指定表的结构 mysqldump -d databas
阅读全文
posted @ 2024-02-22 00:14 lucky_tomato
阅读(17)
评论(0)
推荐(0)
error: Your local changes to the following files would be overwritten by merge
摘要: 使用git pull来更新代码时,有时会遇到以下的问题:error: Your local changes to the following files would be overwritten by merge:....phpPlease, commit your changes or stash
阅读全文
posted @ 2024-02-22 00:10 lucky_tomato
阅读(3594)
评论(0)
推荐(0)
try_files $uri $uri/ @proxy
摘要: 比如:https://xxx/test/abc/cat.jpg?userid=user1&auth=123 按顺序匹配,首先尝试读取$uri,这里的uri是指/test/abc/cat.jpg,尝试去当前工作目录下的/test/abc/目录读取这个cat.jpg的静态文件, 发现没有,就去匹配第2个
阅读全文
posted @ 2024-02-22 00:08 lucky_tomato
阅读(263)
评论(0)
推荐(0)
Python 中创建列表的两种常见方法是:
摘要: 使用函数 list() [] 直接使用 用哪种最快,使用[]最快 这是因为 是 [] 字面语法( literal syntax ),而 list() 是构造函数调用。毫无疑问,调用函数需要额外的时间。 同理,在创建字典时,我们也应该利用 {} 而不是 dict() import timeit pri
阅读全文
posted @ 2024-02-22 00:02 lucky_tomato
阅读(86)
评论(0)
推荐(0)
2024年2月21日
curl获取HTTP状态码
摘要: curl -I -o /dev/null -s -w %{http_code} http://domain
阅读全文
posted @ 2024-02-21 22:29 lucky_tomato
阅读(80)
评论(0)
推荐(0)
find找出匹配文件复制到其它路径
摘要: find /date/ -type f -name "*.txt" -exec cp {} /tmp \; ind /date/ -type f -name "*.txt" | xargs cp -t /tmp
阅读全文
posted @ 2024-02-21 22:19 lucky_tomato
阅读(48)
评论(0)
推荐(0)
运行python脚本报错: /usr/bin/python3^M: bad interpreter: No such file or directory解决方法
摘要: 一般是windows下文本编辑问题,上传到Linux服务器识别不了,最简单解决方法,就把脚本内容复制粘贴到Linux服务器脚本保存就行
阅读全文
posted @ 2024-02-21 22:13 lucky_tomato
阅读(356)
评论(0)
推荐(0)
grep查看上下几行的使用方法
摘要: grep -A n "keyword" filename #显示匹配到的之后n行内容 grep -B n "keyword" filename #显示匹配到的之前n行内容 grep -C n "keyword" filename #显示匹配到的前后n行内容
阅读全文
posted @ 2024-02-21 22:05 lucky_tomato
阅读(1766)
评论(0)
推荐(1)
检查ipv6地址网站工具
摘要: https://ipw.cn/ipv6webcheck/
阅读全文
posted @ 2024-02-21 21:07 lucky_tomato
阅读(172)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
36
下一页
公告