一、下载tar包并解压
yum -y install wget glibc.i686 #后面一个是依赖包,不安装会报错: /lib/ld-linux.so.2: bad ELF interpreter
wget https://dl.google.com/go/go1.13.5.linux-386.tar.gz
tar -C /usr/local/ -zxvf go1.13.5.linux-386.tar.gz
二、配置环境变量
vim /etc/profile
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin