本文主要是介绍远程矿工 Testnet Phase 2 lotus,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
远程矿工 Testnet Phase 2 lotus
- 1,lotus-seal-worker版本
- 2,miner节点
- 3,远程矿工节点
1,lotus-seal-worker版本
lotus-seal-worker
版本
# lotus-seal-worker --version
2020-05-18T14:55:04.937+0800 INFO main lotus-seal-worker/main.go:41 Starting lotus worker
lotus-seal-worker version 0.3.0'+git9a0d0511'
2,miner节点
- 设置
token
lotus-storage-miner auth create-token --perm admin
lotusstorage/config.toml
API配置
[API]
# ListenAddress = "/ip4/192.168.6.161/tcp/2345/http"ListenAddress = "/ip4/192.168.6.161/tcp/2345/http"
# RemoteListenAddress = "127.0.0.1:2345"RemoteListenAddress = "192.168.6.161:2345"
lotus-storage-mine
重启,使配置生效
3,远程矿工节点
- 从miner节点拷贝复制证明文件和
lotus-seal-worker
vim .bashrc
- 设置环境变量
JWT_TOKEN
TORAGE_API_INFO=token:api
export STORAGE_API_INFO="eyTM7o:/ip4/192.168.6.161/tcp/2345/http"
# source .bashrc
lotus-seal-worker run --address 192.168.6.162:2345
- miner节点查看远程矿工
# lotus-storage-miner workers list
Worker 0, host test-PowerEdge-R720xdCPU: [ ] 0 core(s) in useRAM: [| ] 3% 3.93 GiB/126 GiBVMEM: [| ] 3% 3.93 GiB/128 GiBGPU: GeForce RTX 2060, not used
Worker 1, host test-PowerEdge-R720xdCPU: [ ] 0 core(s) in useRAM: [| ] 1% 2.39 GiB/126 GiBVMEM: [| ] 1% 2.39 GiB/128 GiBGPU: GeForce RTX 2060, not used
参考:
- 官方文档
- lotus-seal-worker
这篇关于远程矿工 Testnet Phase 2 lotus的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!