Ubuntu下以太坊客户端的编译、安装和运行

一,安装

1,快速安装
添加以太坊官方APT源,并安装以太坊客户端

sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum

当新版本geth发表后,可直接通过APT完成geth版本升级

sudo apt-get update
sudp apt-get upgrade

2,源码编译安装
从github上获取go-ethereum源码,然后编译geth

git clone https://github.com/ethereum/go-ethereum.git
cd go-ethereum
make geth

二,运行

在以太坊公有链上运行一个全节点

geth --fast --cache=512 --datadir "/home/zhujiantao/eth/net" console

在以太坊测试网络上运行一个全节点

geth --testnet --fast --cache=512 --datadir "/home/zhujiantao/eth/testnet" console

你可能感兴趣的:(Ubuntu下以太坊客户端的编译、安装和运行)