[root@zabbixserver ~]# cd /opt/ [root@zabbixserver opt]# rz rz waiting to receive. Starting zmodem transfer. Press Ctrl+C to cancel. Transferring go1.18.4.linux-amd64.tar.gz... 100% 138488 KB 27697 KB/sec 00:00:05 0 Errors [root@zabbixserver opt]# tar zxf go1.18.4.linux-amd64.tar.gz [root@zabbixserver opt]# vim /etc/profile.d/go.sh export GOROOT=/opt/go export GOPATH=$HOME/go export PATH=$PATH:$GOROOT/bin:$GOPATH/bin [root@zabbixserver opt]# source /etc/profile [root@zabbixserver opt]# go env -w GO111MODULE=on [root@zabbixserver opt]# go env -w GOPROXY=https://goproxy.cn,direct