摘要: apiVersion: v1 kind: ConfigMap metadata: name: filebeat-config namespace: default labels: app: filebeat data: filebeat.yml: |- filebeat.inputs: - type 阅读全文
posted @ 2022-10-18 10:54 guoxin0126 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 创建role、rolebinding apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: annotations: rbac.authorization.kubernetes.io/autoupdate: "true" labe 阅读全文
posted @ 2022-10-17 10:29 guoxin0126 阅读(75) 评论(0) 推荐(0) 编辑
摘要: sed -i -E 's/[[:space:]]+$//g' nginx.conf 266 sed -i 's/\t/ /g' nginx.conf 阅读全文
posted @ 2022-10-11 15:18 guoxin0126 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 机器IP用户名备注 A 10.21.32.106 gdut728 目标服务器,处于内网 B 123.123.123.123 root 外网服务器,相当于桥梁的作用 反向代理ssh -fCNR 正向代理ssh -fCNL -f 后台执行ssh指令-C 允许压缩数据-N 不执行远程指令-R 将远程主机( 阅读全文
posted @ 2022-10-10 16:49 guoxin0126 阅读(78) 评论(2) 推荐(0) 编辑
摘要: #!/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 ~ 阅读全文
posted @ 2022-06-30 15:51 guoxin0126 阅读(92) 评论(0) 推荐(0) 编辑
摘要: #!/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 阅读全文
posted @ 2019-05-22 14:52 guoxin0126 阅读(519) 评论(0) 推荐(0) 编辑