02 2020 档案

摘要:mac os 使用rzsz传输文件 安装brewbrew是Mac OS上的一个包管理工具,可以使用它来安装接下来要使用到的iTerm,wget等工具 Mac默认安装了ruby,打开终端执行如下命令: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubu 阅读全文
posted @ 2020-02-28 20:07 __Yoon 阅读(817) 评论(0) 推荐(0) 编辑
摘要:生产环境中我们时常遇到这样的情况,数据库性能恶劣,需要马上杀掉部分会话,不然数据库就夯死。我们可以先找show processlist的输出来杀会话,但是比较麻烦。pt-kill为我们解决了杀会话问题。 1、每10秒检查一次,发现有 Query 的进程就给干掉# 只打印每10秒检查一次:(--int 阅读全文
posted @ 2020-02-25 23:32 __Yoon 阅读(320) 评论(0) 推荐(0) 编辑
摘要:1、查看当前应用连接,连接数突增排查 select user,SUBSTRING_INDEX(host,':',1) as ip , count(*) as count,db from information_schema.processlist where host not in ('localh 阅读全文
posted @ 2020-02-24 10:44 __Yoon 阅读(186) 评论(0) 推荐(0) 编辑
摘要:Python <= 2.3python -c "import SimpleHTTPServer as s; s.test();" 8000 Python >= 2.4python -m SimpleHTTPServer 8000 Python 3.xpython -m http.server 800 阅读全文
posted @ 2020-02-18 14:32 __Yoon 阅读(1725) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示