storj主网挖矿指南

前置条件:ceotos 7 ,硬盘大于550G,docker

  1. 注册你的认证token,https://registration.storj.io/
    输入邮箱后,将得到一串字符串
你的邮箱:1Avv1fgcwr8YHCT1kFxsChxyQSChUJ6WeMBSweVdf939QQJSjKWiGShgd1v12C7RmZ936BBPJA6SiWTnHvtsmFpDDLzb8E
  1. 生成Identity并授权
$curl -L https://github.com/storj/storj/releases/latest/download/identity_linux_amd64.zip -o identity_linux_amd64.zip
$unzip -o identity_linux_amd64.zip
$chmod +x identity
$sudo mv identity /usr/local/bin/identity

生成key,非常慢,可能需要30分钟~1个小时左右

$identity create storagenode
Generating key with a minimum a difficulty of 36...
Generated 86734294 keys; best difficulty so far: 39
Found a key with difficulty 39!
Unsigned identity is located in "/root/.local/share/storj/identity/storagenode"
Please *move* CA key to secure storage - it is only needed for identity management and isn't needed to run a storage node!
	/root/.local/share/storj/identity/storagenode/ca.key

授权身份

最后一个参数为第一步获取的token

$identity authorize storagenode 你的邮箱1Avv1fgcwr8YHCT1kFxsChxyQSChUJ6WeMBSweVdf939QQJSjKWiGShgd1v12C7RmZ936BBPJA6SiWTnHvtsmFpDDLzb8E
Identity successfully authorized using single use authorization token.
Please back-up "/root/.local/share/storj/identity/storagenode" to a safe location.

确认身份

$ grep -c BEGIN ~/.local/share/storj/identity/storagenode/ca.cert
2
$ grep -c BEGIN ~/.local/share/storj/identity/storagenode/identity.cert
3

第一个命令返回2 第二个命令返回3,如果返回不一致,则表示授权失败

备份身份

使用外部设备备份下面的文件夹

~/.local/share/storj/identity/storagenode
tree ~/.local/share/storj/identity/storagenode
├── ca.1617022254.cert
├── ca.cert
├── ca.key
├── identity.1617022254.cert
├── identity.cert
└── identity.key
  1. 设置端口转发(有固定公网ip则不用)
    配置参考 https://documentation.storj.io/dependencies/port-forwarding

  2. 启动

初始化

docker run --rm -e SETUP="true" \
    -v /root/.local/share/storj/identity/storagenode/:/app/identity \
    -v /data/storj/:/app/config \
    --name storagenode storjlabs/storagenode:latest

启动

docker run -d --restart unless-stopped --stop-timeout 300 \
    -p 28967:28967 \
    -p 0.0.0.0:14002:14002 \
    -e WALLET="0xafb06496b7D9df74FE72b68e9D6a07b23A81135E" \
    -e EMAIL="你的邮箱@qq.com" \
    -e ADDRESS="你的固定ip或域名:28967" \
    -e STORAGE="500GB" \
    -v /root/.local/share/storj/identity/storagenode/:/app/identity \
    -v /data/storj/:/app/config \
    --name storagenode storjlabs/storagenode:latest

WALLET是你的以太坊钱包地址,挖矿获得的收益会转到这里
ADDRESS是你的外网ip,如果没有固定ip,则按照步骤3 设置成你的域名
STORAGE 至少需要550G
14002为存储节点console ui,

  1. 打开dashborad
http://你的ip:14002/

在这里插入图片描述

在这里插入图片描述

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值