上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 44 下一页
摘要: SELECT CONCAT( "alter table ", TABLE_SCHEMA, ".", TABLE_NAME, " modify ", COLUMN_NAME, " bigint(20)", IF ( IS_NULLABLE = 'NO', " NOT NULL", "" ), IF ( 阅读全文
posted @ 2020-03-24 23:45 __Yoon 阅读(3133) 评论(0) 推荐(0)
摘要: pt-online-schema-change使用 工作原理:1、如果存在外键,根据alter-foreign-keys-method参数的值,检测外键相关的表,做相应设置的处理。没有使用 --alter-foreign-keys-method=rebuild_constraints 指定特定的值, 阅读全文
posted @ 2020-03-24 02:14 __Yoon 阅读(1226) 评论(0) 推荐(0)
摘要: 1.jedis机器-->ping-->redis机器,毫秒级的响应时间 网络畅通 2.使用netstat -apn |grep redis-server连接数为20多个--网络连接数正常 3.free -m内存使用率60% (表面上)内存够用 4.df -h磁盘使用率15% 磁盘空间充足 5.使用r 阅读全文
posted @ 2020-03-10 22:46 __Yoon 阅读(290) 评论(0) 推荐(0)
摘要: Ctrl + d 删除一个字符,相当于通常的Delete键(命令行若无所有字符,则相当于exit;处理多行标准输入时也表示eof)Ctrl + h 退格删除一个字符,相当于通常的Backspace键Ctrl + u 删除光标之前到行首的字符 Ctrl + k 删除光标之前到行尾的字符Ctrl + c 阅读全文
posted @ 2020-03-03 10:09 __Yoon 阅读(425) 评论(0) 推荐(0)
摘要: 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 阅读(835) 评论(0) 推荐(0)
摘要: 生产环境中我们时常遇到这样的情况,数据库性能恶劣,需要马上杀掉部分会话,不然数据库就夯死。我们可以先找show processlist的输出来杀会话,但是比较麻烦。pt-kill为我们解决了杀会话问题。 1、每10秒检查一次,发现有 Query 的进程就给干掉# 只打印每10秒检查一次:(--int 阅读全文
posted @ 2020-02-25 23:32 __Yoon 阅读(333) 评论(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 阅读(192) 评论(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 阅读(1738) 评论(0) 推荐(0)
摘要: mysqld_exporter自带的这个功能,下面是我使用的启动参数: nohup ./mysqld_exporter --config.my-cnf="./my.cnf" --web.listen-address=":9104" --collect.heartbeat --collect.auto 阅读全文
posted @ 2020-01-20 18:01 __Yoon 阅读(343) 评论(0) 推荐(0)
摘要: Linux read 命令用于从标准输入读取数值。 read 内部命令被用来从标准输入读取单行数据。这个命令可以用来读取键盘输入,当使用重定向的时候,可以读取文件中的一行数据。 语法: read [-ers] [-a aname] [-d delim] [-i text] [-n nchars] [ 阅读全文
posted @ 2020-01-16 22:31 __Yoon 阅读(974) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 44 下一页