日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

【Get 以太坊技能】CentOS 7 Geth安装

發(fā)布時(shí)間:2024/9/19 编程问答 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【Get 以太坊技能】CentOS 7 Geth安装 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

前言

  • 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

驗(yàn)證下載文件的完整性:

shell> md5sum geth-alltools-linux-amd64-1.9.8-d62e9b28.tar.gz 7c2914f1d3cbb9b4c9af437a03a0f43b geth-alltools-linux-amd64-1.9.8-d62e9b28.tar.gz

注:對(duì)比md5,md5值與圖中md5值一致,文件驗(yàn)證通過

解壓:

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

確認(rèn)修改后的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/profile

Step3:驗(yàn)證

查看版本:

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位技術(shù)專家面對(duì)面20年技術(shù)見證,附贈(zèng)技術(shù)全景圖

總結(jié)

以上是生活随笔為你收集整理的【Get 以太坊技能】CentOS 7 Geth安装的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。