安装Geth
我们将所有的安装放置在/home/zhyunfe/下1
2
3
4
5
6cd /home/zhyunfe
mkdir geth
git clone https://github.com/ethereum/go-ethereum
sudo apt-get install -y build-essential golang
cd go-ethereum
make geth
安装完了之后我们可以使用命令测试一下1
2
3
4
5
6
7
8
9
10
11
12
13
14
15zhyunfe@zhyunfe: /home/zhyunfe$ geth
WARN [08-29|04:30:34.204] Sanitizing cache to Go's GC limits provided=1024 updated=320
INFO [08-29|04:30:34.879] Maximum peer count ETH=25 LES=0 total=25
INFO [08-29|04:30:34.916] Starting peer-to-peer node instance=Geth/v1.8.15-unstable-63352bf4/linux-amd64/go1.10.1
INFO [08-29|04:30:34.919] Allocated cache and file handles database=/home/zhyunfe/.ethereum/geth/chaindata cache=240 handles=512
INFO [08-29|04:30:35.448] Initialised chain configuration config="{ChainID: 1 Homestead: 1150000 DAO: 1920000 DAOSupport: true EIP150: 2463000 EIP155: 2675000 EIP158: 2675000 Byzantium: 4370000 Constantinople: <nil> Engine: ethash}"
INFO [08-29|04:30:35.785] Disk storage enabled for ethash caches dir=/home/zhyunfe/.ethereum/geth/ethash count=3
INFO [08-29|04:30:35.794] Disk storage enabled for ethash DAGs dir=/home/zhyunfe/.ethash count=2
INFO [08-29|04:30:35.812] Initialising Ethereum protocol versions="[63 62]" network=1
INFO [08-29|04:30:36.314] Loaded most recent local header number=0 hash=d4e567…cb8fa3 td=17179869184
INFO [08-29|04:30:36.317] Loaded most recent local full block number=0 hash=d4e567…cb8fa3 td=17179869184
INFO [08-29|04:30:36.318] Loaded most recent local fast block number=0 hash=d4e567…cb8fa3 td=17179869184
INFO [08-29|04:30:36.399] Loaded local transaction journal transactions=0 dropped=0
INFO [08-29|04:30:36.443] Regenerated local transaction journal transactions=0 accounts=0
INFO [08-29|04:30:36.453] Starting P2P networking