cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.bakwget http://mirrors.163.com/.help/CentOS6-Base-163.repomv CentOS6-Base-163.repo CentOS-Base.repoyum clean allyum makecache
#python3 进行pip安装时使用豆瓣的源
pip3 install tornado -i https://pypi.douban.com/simple/
#Centos x64 6.9下载mini版本
http://mirrors.sohu.com/centos/6.9/isos/x86_64/CentOS-6.9-x86_64-minimal.iso
#安装
yum install sysstat -y
dd if=/dev/zero of=test bs=64k count=4k oflag=dsync
查看锁表情况
mysql -uroot -pD***** -e show OPEN TABLES where In_use > 0;
# python3 查看 cpu 内存 磁盘
http://blog.sina.com.cn/s/blog_dc93e7a40102wyk5.html
http://www.cnblogs.com/wlmq/p/6113455.html
简单的mysql 性能和健康程度巡检
https://yq.aliyun.com/articles/45716
redis持久化文件损坏
redis-check-aof
查看cpu利用率
top -n 1 |grep Cpu | cut -d "," -f 1 | cut -d ":" -f 2 | sed 's/us//g'