ubuntu安装以太坊客户端
时间: 2023-10-05 10:14:35 浏览: 56
1. 打开终端,输入以下命令更新系统:
```
sudo apt-get update
sudo apt-get upgrade
```
2. 安装以太坊客户端:
```
sudo apt-get install ethereum
```
3. 验证以太坊客户端是否安装成功:
```
geth version
```
4. 启动以太坊客户端:
```
geth
```
如果出现以下提示,表示正在同步区块链:
```
INFO [07-31|11:28:13.836] Imported new state entries count=1
INFO [07-31|11:28:13.837] Imported new block receipts count=1
INFO [07-31|11:28:14.096] Imported new chain segment blocks=1 txs=220 mgas=14.590 elapsed=2.278s mgasps=6.408 number=12925150 hash=5b7a8d…c8719e cache=132.00B
INFO [07-31|11:28:14.097] Imported new block headers count=1 elapsed=4.562ms number=12925151 hash=26e8a4…f1a6a3 ignored=0
```
如果出现以下提示,表示以太坊客户端已经启动:
```
INFO [07-31|11:29:26.717] UDP listener up self=enode://8f0a6c7217e5c0b5c7b8ce5d5d7fbb2c1b2ff2bdf5d5d5e5@0.0.0.0:30301
INFO [07-31|11:29:26.719] RLPx listener up self=enode://8f0a6c7217e5c0b5c7b8ce5d5d7fbb2c1b2ff2bdf5d5d5e5@0.0.0.0:30301
INFO [07-31|11:29:26.719] IPC endpoint opened url=/home/ubuntu/.ethereum/geth.ipc
```
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)