为了毕设要开始研究区块链代币了
Centos 7系统
geth安装
安装基础需要的工具
yum update -y && yum install git wget bzip2 vim gcc-c++ ntp epel-release nodejs cmake -y
安装Go
wget https://dl.google.com/go/go1.10.linux-amd64.tar.gz
解压
tar -C /usr/local -xzf go1.10.linux-amd64.tar.gz
配置环境变量
echo 'export GOROOT=/usr/local/go' >> /etc/profile
echo 'export PATH=$PATH:$GOROOT/bin' >> /etc/profile
echo 'export GOPATH=/root/go' >> /etc/profile
echo 'export PATH=$PATH:$GOPATH/bin' >> /etc/profile
source /etc/profile
验证
克隆编译项目go-ethereum
git clone https://github.com/ethereum/go-ethereum.git
cd go-ethereum
make all
在path中加入geth路径
echo 'export PATH=$PATH:/opt/go-ethereum/build/bin' >> /etc/profile
source /etc/profile
验证
geth version