上一页 1 2 3 4 5 6 7 8 ··· 36 下一页
摘要: 前言: 在广州这座城市下着小雨的晚上,我正在厨房洗着碗,突然手机有来电,脱下手套,一看是来自阿里云的告警电话。打开飞书查看告警内容,发现某个业务的RDS只读实例CPU飚到100%,下意识觉得是不是有慢查询导致,想着不会有啥问题,上去kill慢查就好了,结果发现是大问题....一、发现问题 2024年 阅读全文
posted @ 2024-03-19 00:39 lucky_tomato 阅读(167) 评论(0) 推荐(1)
摘要: 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)
摘要: 使用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)
摘要: 比如: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)
摘要: 使用函数 list() [] 直接使用 用哪种最快,使用[]最快 这是因为 是 [] 字面语法( literal syntax ),而 list() 是构造函数调用。毫无疑问,调用函数需要额外的时间。 同理,在创建字典时,我们也应该利用 {} 而不是 dict() import timeit pri 阅读全文
posted @ 2024-02-22 00:02 lucky_tomato 阅读(86) 评论(0) 推荐(0)
摘要: curl -I -o /dev/null -s -w %{http_code} http://domain 阅读全文
posted @ 2024-02-21 22:29 lucky_tomato 阅读(80) 评论(0) 推荐(0)
摘要: 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)
摘要: 一般是windows下文本编辑问题,上传到Linux服务器识别不了,最简单解决方法,就把脚本内容复制粘贴到Linux服务器脚本保存就行 阅读全文
posted @ 2024-02-21 22:13 lucky_tomato 阅读(356) 评论(0) 推荐(0)
摘要: 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)
摘要: https://ipw.cn/ipv6webcheck/ 阅读全文
posted @ 2024-02-21 21:07 lucky_tomato 阅读(172) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 36 下一页