Based on ceotos 7, the hard disk is larger than 550G, docker is installed
- Register your authentication token, https://registration.storj.io/ After
entering the email address, you will get a string of strings
你的邮箱:1Avv1fgcwr8YHCT1kFxsChxyQSChUJ6WeMBSweVdf939QQJSjKWiGShgd1v12C7RmZ936BBPJA6SiWTnHvtsmFpDDLzb8E
- Generate Identity and authorize
$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 generation is very slow, it may take 30 minutes to 1 hour or so
$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
Authorized identity
The last parameter is the token obtained in the first step
$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.
identifying
$ grep -c BEGIN ~/.local/share/storj/identity/storagenode/ca.cert
2
$ grep -c BEGIN ~/.local/share/storj/identity/storagenode/identity.cert
3
The first command returns 2 and the second command returns 3. If the return is inconsistent, it means authorization failed
Backup identity
Use an external device to back up the following folders
~/.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
-
Set up port forwarding (if you have a fixed public network ip, you don’t need it)
configuration reference https://documentation.storj.io/dependencies/port-forwarding -
start up
initialization
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
start up
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 is your Ethereum wallet address. The income from mining will go to here.
ADDRESS is your external network ip. If you don’t have a fixed ip, follow step 3 to set your domain name
STORAGE. At least
550G 14002 is the storage node console ui ,
- Open dashborad
http://你的ip:14002/