摘要: .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 阅读全文
posted @ 2021-05-26 11:11 梦在燃烧 阅读(704) 评论(0) 推荐(0) 编辑
摘要: SELinux yum install policycoreutils-python semanage fcontext -l | grep -i mysql firewall #查看已经开放的端口 firewall-cmd --list-ports #增加开放的端口(开放后需要要重启防火墙才生效) 阅读全文
posted @ 2021-04-14 13:56 梦在燃烧 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 慢查询分析 # 分析占用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') 阅读全文
posted @ 2021-02-22 13:35 梦在燃烧 阅读(32) 评论(0) 推荐(0) 编辑