下载源码
cd /usr/local
git clone https://github.com/ethereum/go-ethereum.git
或者(mirror) git clone https://ghproxy.com/https://github.com/ethereum/go-ethereum.git
拓展:如何git clone指定tag版本
git clone -b v1.10.5 https://github.com/ethereum/go-ethereum.git
Building the source
make geth
查看版本号验编译
./build/bin/geth version
配环境
export GETH=/usr/local/go-ethereum
export PATH=$PATH:$GETH/build/bin
刷新环境变量
source /etc/profile
查看版本验环境
geth version