安装go
wget https://studygolang.com/dl/golang/go1.9.linux-amd64.tar.gz --no-check-certificate
tar -zxvf go1.9.linux-amd64.tar.gz
mv go /usr/local/
echo "export GOROOT=/usr/local/go" >> /etc/profile
echo "export PATH=$PATH:/usr/local/go/bin" >> /etc/profile
source /etc/profile
升级git
yum remove git
yum install zlib-devel
yum install perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker
yum install gettext-devel
yum install curl-devel
下载https://github.com/git/git/archive/v2.14.1.tar.gz
tar -zxvf git-2.14.1.tar.gz
cd git-2.14.1
./configure --without-tcltk --with-curl
gmake
gmake install
安装go-ethereum
git clone https://github.com/ethereum/go-ethereum.git
cd go-ethereum/
gmake all
echo "export PATH=$PATH:$PWD/build/bin" >> /etc/profile
source /etc/profile
有疑问加站长微信联系(非本文作者)