[root@k8s-master ~]# cat go.sh
#!/bin/bash
wget https://dl.google.com/go/go1.17.5.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.17.5.linux-amd64.tar.gz
sed -i '$a export PATH=$PATH:/usr/local/go/bin ' /etc/profile
sed -i '$a export GOPROXY=https://goproxy.io' /etc/profile
source /etc/profile
source /etc/profile
克隆:https://github.com/tricobbler/redis-migrate
go build
剩下的参考链接里面的命令就好了