数据库备份脚本

#!/bin/bashPATH=/var/lib/mysql/bin:$PATHDBPATH=/server/backupMYUSER=rootMYPASS=rootSOCKET=/var/lib/mysql/mysql.sockMYCMD="mysql-u$MYUSER-p$MYPASS

k8s查找已使用port

#!/bin/bashPATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/binforiin$(kubectlgetns|awk'{print$1}'|grep-vNAME)dokubectlgetsvc-n$i|grep-o-E

ansible批量推key

#!/bin/bashq=`cat/tmp/ip.txt`#passwd_root=(你的各个密码)passwd_root=(Cdh@AX123ax_642135ax_642135nginx@AX123Sentry@AX123k8s@Ali123Git@ax456wiki@AX123)>/tm

harbor一键安装脚本

[root@localhost~]#catharbor.sh#!/bin/bashset-ebasedir=/optecho"#####################################设置下载源#################################"m

内存释放脚本

#!/bin/bashset-eFreeSpace=`free-h|awk'/^Mem/{print$4}'`if[$FreeSpace-lt600M];thenecho1>/proc/sys/vm/drop_cachesecho2>/proc/sys/vm/drop_cachesech

Zabbix agent升级脚本

#!/bin/bashsystemctlstopzabbix-agentrpm-qa|grepzabbix|xargsrpm-erpm-Uvhhttps://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-2.el7.noarc