安装swarm-clef
安装
访问https://github.com/ethersphere/bee-clef/releases并下载最新版本的安装程序
1
| sudo dpkg -i bee-clef_0.4.9_amd64.deb
|
修改配置sudo vi /etc/bee/bee.yaml
修改点如下:
1 2 3 4 5 6
| full-node: true swap-endpoint: wss://goerli.infura.io/ws/v3/your-api-key resolver-options: ["https://mainnet.infura.io/v3/<<your-api-key>>"] db-open-files-limit: 2000 debug-api-enable: true debug-api-addr: 127.0.0.1:1635
|
查看状态
1
| systemctl status bee-clef
|
查看日志
1
| journalctl -f -u bee-clef.service
|
安装swarm-bee
安装
访问https://github.com/ethersphere/bee/releases并下载最新的安装程序
1
| sudo dpkg -i bee_0.5.3_amd64.deb
|
常用命令记录
启动和停止
1 2 3 4 5 6
| # 启动 sudo systemctl start bee # 停止 sudo systemctl stop bee # 重启 sudo systemctl restart bee
|
查看状态
查看日志
1
| journalctl --lines=100 --follow --unit bee
|
文件路径
Bee-clef#
Configuration files are stored in /etc/bee-clef/
Key material and other data is stored in /var/lib/bee-clef/
Bee#
Configuration files are stored in /etc/bee/
State, chunks and other data is stored in /var/lib/bee/
1
| sudo vi /etc/bee/bee.yaml
|
导出钱包
把bee-clef的钱包导出,然后就可以导入到自己的钱包(如metamask)。
运行命令
1 2 3 4
| # 运行命令后的输出结果 # bee-clef-keys Key exported to /root/bee-clef-key-1617347363.json Pass exported to /root/bee-clef-password-1617347363.txt
|