Elasticsearch数据定期删除
|
Shell
•
|
点赞 0
|
预览 343
#/bin/bash#定期删除索引,只保留30天内的日志索引LAST_DATA=`date -d "-30 days" "+%Y.%m.%d"`#X-PACK用户名USER="elastic"# X-Pack 密码PASSW
数据库备份脚本
|
Shell
•
|
点赞 0
|
预览 746
#!/bin/bashPATH=/var/lib/mysql/bin:$PATHDBPATH=/server/backupMYUSER=rootMYPASS=rootSOCKET=/var/lib/mysql/mysql.sockMYCMD="mysql-u$MYUSER-p$MYPASS
k8s查找已使用port
|
Shell
•
|
点赞 0
|
预览 596
#!/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
|
Shell
•
|
点赞 0
|
预览 619
#!/bin/bashq=`cat/tmp/ip.txt`#passwd_root=(你的各个密码)passwd_root=(Cdh@AX123ax_642135ax_642135nginx@AX123Sentry@AX123k8s@Ali123Git@ax456wiki@AX123)>/tm
harbor一键安装脚本
|
Shell
•
|
点赞 0
|
预览 714
[root@localhost~]#catharbor.sh#!/bin/bashset-ebasedir=/optecho"#####################################设置下载源#################################"m