【Get 以太坊技能】CentOS 7 Geth安装
生活随笔
收集整理的這篇文章主要介紹了
【Get 以太坊技能】CentOS 7 Geth安装
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
前言
- CentOS Linux release 7.4.1708 (Core)
- 已安裝Go (Centos 7安裝go)
- github 地址:https://github.com/ethereum/go-ethereum
- 鏡像地址:https://gitee.com/mirrors/go-ethereum
- 下載地址: https://geth.ethereum.org/downloads/
- Geth 1.9.8
Step1:下載 Geth
下載地址: https://geth.ethereum.org/downloads/
使用wget下載:
shell> wget https://gethstore.blob.core.windows.net/builds/geth-alltools-linux-amd64-1.9.8-d62e9b28.tar.gz驗證下載文件的完整性:
shell> md5sum geth-alltools-linux-amd64-1.9.8-d62e9b28.tar.gz 7c2914f1d3cbb9b4c9af437a03a0f43b geth-alltools-linux-amd64-1.9.8-d62e9b28.tar.gz注:對比md5,md5值與圖中md5值一致,文件驗證通過
解壓:
tar -zxvf geth-alltools-linux-amd64-1.9.8-d62e9b28.tar.gz解壓后文件的完整路徑為:/data/sde/geth/geth-alltools-linux-amd64-1.9.8-d62e9b28
Step2:配置PATH
修改profile:
shell> cp /etc/profile /etc/profile_bak_`date +%Y%m%d` shell> echo "# config geth path" >> /etc/profile shell> echo "export GETH_HOME=/data/sde/geth/geth-alltools-linux-amd64-1.9.8-d62e9b28" >> /etc/profile shell> echo "export PATH=\$PATH:\$GETH_HOME" >> /etc/profile shell> echo "" >> /etc/profile確認修改后的profile是否正確:
shell> cat /etc/profile ... export GETH_HOME=/data/sde/geth/geth-alltools-linux-amd64-1.9.8-d62e9b28 export PATH=$PATH:$GETH_HOME讓修改后的profile生效:
shell> source /etc/profileStep3:驗證
查看版本:
shell> geth version Geth Version: 1.9.8-stable Git Commit: d62e9b285777c036c108b89fac0c78f7855ba314 Git Commit Date: 20191126 Architecture: amd64 Protocol Versions: [64 63] Go Version: go1.13.4 Operating System: linux GOPATH=/data/sde/go/go GOROOT=/data/sde/go/go 與50位技術專家面對面20年技術見證,附贈技術全景圖總結
以上是生活随笔為你收集整理的【Get 以太坊技能】CentOS 7 Geth安装的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【Get 以太坊技能】CentOS 7
- 下一篇: 如何设置两台Mac电脑共享鼠标和键盘两台