摘要:
.ssh/config Host proxy Hostname 192.168.1.2 Port 22 User login_user IdentityFile login.pem Host proxy_nologin Hostname 192.168.1.2 Port 22 User nologi 阅读全文
摘要:
SELinux yum install policycoreutils-python semanage fcontext -l | grep -i mysql firewall #查看已经开放的端口 firewall-cmd --list-ports #增加开放的端口(开放后需要要重启防火墙才生效) 阅读全文
摘要:
慢查询分析 # 分析占用cpu高的sql TOP_PIDS=$(ps -e o pcpu,tid -o args -T |grep mysql|sort -r|head -n 10|awk '{print $2","}'|awk '{printf "%s", $0}'|sed 's/.$//g') 阅读全文