摘要:
apiVersion: v1 kind: ConfigMap metadata: name: filebeat-config namespace: default labels: app: filebeat data: filebeat.yml: |- filebeat.inputs: - type 阅读全文
摘要:
创建role、rolebinding apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: annotations: rbac.authorization.kubernetes.io/autoupdate: "true" labe 阅读全文
摘要:
sed -i -E 's/[[:space:]]+$//g' nginx.conf 266 sed -i 's/\t/ /g' nginx.conf 阅读全文
摘要:
机器IP用户名备注 A 10.21.32.106 gdut728 目标服务器,处于内网 B 123.123.123.123 root 外网服务器,相当于桥梁的作用 反向代理ssh -fCNR 正向代理ssh -fCNL -f 后台执行ssh指令-C 允许压缩数据-N 不执行远程指令-R 将远程主机( 阅读全文
摘要:
#!/bin/bash export SSHPASS="123456"file=$1user="root" if [ !-n $file ];then echo "Please set IP address list." exit 1fissh-keygen -t rsa -q -N "" -f ~ 阅读全文
摘要:
#!/bin/bash password=Jdyun@2019 for i in {1..3} do expect <<-EOF set timeout 5 spawn ssh-copy-id -i root@jdc$i expect { "yes/no" { send "yes\n";exp_co 阅读全文