storj主网挖矿指南
注册你的认证token,https://registration.storj.io/输入邮箱后,将得到一串字符串你的邮箱:1Avv1fgcwr8YHCT1kFxsChxyQSChUJ6WeMBSweVdf939QQJSjKWiGShgd1v12C7RmZ936BBPJA6SiWTnHvtsmFpDDLzb8E生成Identity并授权$curl -L https://github.com/stor
·
前置条件:ceotos 7 ,硬盘大于550G,docker
- 注册你的认证token,https://registration.storj.io/
输入邮箱后,将得到一串字符串
你的邮箱:1Avv1fgcwr8YHCT1kFxsChxyQSChUJ6WeMBSweVdf939QQJSjKWiGShgd1v12C7RmZ936BBPJA6SiWTnHvtsmFpDDLzb8E
- 生成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
-
设置端口转发(有固定公网ip则不用)
配置参考 https://documentation.storj.io/dependencies/port-forwarding -
启动
初始化
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,
- 打开dashborad
http://你的ip:14002/
更多推荐
已为社区贡献1条内容
所有评论(0)