Centos二进制安装Geth以太坊客户端

环境准备

yum install git
yum install golang

获取二进制包
网站:https://geth.ethereum.org/downloads
在这里插入图片描述

wget https://gethstore.blob.core.windows.net/builds/geth-alltools-linux-amd64-1.11.0-unstable-37e3208e.tar.gz
tar -zxvf geth-alltools-linux-amd64-1.11.0-unstable-37e3208e.tar.gz -C /home/blockchadin/geth-1.11.0

解压安装包并放置目录

mkdir /usr/local/geth-1.11.0
cp /home/blockchadin/geth-1.11.0/* /usr/local/geth-1.11.0/

添加环境变量(vim /etc/profile)

#BlockChain-Goth
export GETH_HOME=/usr/local/geth-1.11.0
export PATH=$PATH:$GETH_HOME

使环境变量生效并查看版本信息

source /etc/profile
geth version

猜你喜欢

转载自blog.csdn.net/ahaahaj/article/details/128931566