Affected files: .obsidian/workspace 03. 資料收集/HTTP Server/Nginx.md 03. 資料收集/Hobby/RC.md 03. 資料收集/Hobby/模型/Traxxas Sledge.md 03. 資料收集/Hobby/模型/舊化作例.md 03. 資料收集/Hobby/軍武/虎式.md 03. 資料收集/Programming/COM/20210726 - COM Interface.md 03. 資料收集/Programming/DB/MySQL.md 03. 資料收集/Programming/DB/sqlite.md 03. 資料收集/Programming/Design Pattern.md 03. 資料收集/Programming/FFMPEG/00. Introduction.md 03. 資料收集/Programming/FFMPEG/01. Setup.md 03. 資料收集/Programming/FFMpeg.md 03. 資料收集/Programming/Flask.md 03. 資料收集/Programming/Media Foundation/20210604 - Windows media foundation.md 03. 資料收集/Programming/OpenCV.md 03. 資料收集/Programming/OpenGL.md 03. 資料收集/Programming/Python/argparse.ArgumentParser.md 03. 資料收集/Programming/Python/decorator.md 03. 資料收集/Programming/Python/logging.md 03. 資料收集/Programming/Python/opencv.md 03. 資料收集/Programming/Python/subprocess.md 03. 資料收集/Programming/Python/threading.md 03. 資料收集/Programming/Python/tkinter.md 03. 資料收集/Programming/Python/檢測工具.md 03. 資料收集/Programming/QT/Dropdown button.md 03. 資料收集/Programming/QT/QVariant.md 03. 資料收集/Programming/QT/Qt.md 03. 資料收集/Programming/Qt.md 03. 資料收集/Programming/UML.md 03. 資料收集/Programming/演算法.md 03. 資料收集/架站/03. Trojan.md 03. 資料收集/架站/Gitea.md 03. 資料收集/架站/HTTP Server/Apache.md 03. 資料收集/架站/HTTP Server/Nginx/Reverse Proxy(Layer4).md 03. 資料收集/架站/Pelican blog.md 03. 資料收集/架站/Proxmox VE.md 03. 資料收集/架站/SWAG Reverse proxy.md 03. 資料收集/架站/Storj.md 03. 資料收集/架站/Trojan.md 03. 資料收集/科技/802.11.md 03. 資料收集/科技/HDR Sensor.md 03. 資料收集/科技/量子電腦.md 03. 資料收集/科技/鋰電池.md 03. 資料收集/軟體工具/IPFS.md 03. 資料收集/軟體工具/MkDocs.md 03. 資料收集/軟體工具/Obsidian.md 03. 資料收集/軟體工具/docker.md 03. 資料收集/軟體工具/git/apply.md 03. 資料收集/軟體工具/git/submodule.md
81 lines
2.6 KiB
Markdown
81 lines
2.6 KiB
Markdown
# Documentation
|
|
- [Introduction - Storj](https://documentation.storj.io/)
|
|
|
|
## Setup
|
|
Pull image
|
|
```shell
|
|
sudo docker pull storjlabs/storagenode:latest
|
|
```
|
|
|
|
Do this **once**.
|
|
```shell
|
|
sudo docker run --rm -e SETUP="true" \
|
|
--mount type=bind,source="/volume1/homes/awin/Storj/key",destination=/app/identity \
|
|
--mount type=bind,source="/volume1/docker/Storj/data",destination=/app/config \
|
|
--name storagenode storjlabs/storagenode:latest
|
|
```
|
|
|
|
## Run
|
|
```shell
|
|
sudo docker run -d --restart unless-stopped --stop-timeout 300 \
|
|
-p 28967:28967 \
|
|
-p 28967:28967/udp \
|
|
-p 14002:14002 \
|
|
-e WALLET="0x9Ce80345355Ad8C17991620E13d8423900CEDcd0" \
|
|
-e EMAIL="awinhuang@gmail.com" \
|
|
-e ADDRESS="awin.myds.me:28967" \
|
|
-e STORAGE="2TB" \
|
|
--mount type=bind,source="/volume1/homes/awin/Storj/key",destination=/app/identity \
|
|
--mount type=bind,source="/volume1/docker/Storj/data",destination=/app/config \
|
|
--name storagenode storjlabs/storagenode:latest
|
|
```
|
|
|
|
## Update configuration
|
|
### Linux
|
|
1. Stop docker container
|
|
```shell
|
|
sudo docker stop -t 300 storagenode ;\
|
|
sudo docker rm storagenode ;\
|
|
sudo docker pull storjlabs/storagenode
|
|
```
|
|
2. Run docker again. Check [[Storj#Run]]. [^1]
|
|
3. Or, create a task, and run below command:
|
|
```shell
|
|
echo "Stop storagenode" ;\
|
|
sudo docker stop -t 300 storagenode ;\
|
|
sudo docker rm storagenode ;\
|
|
echo "Pull storagenode" ;\
|
|
sudo docker pull storjlabs/storagenode ;\
|
|
echo "Start storagenode" ;\
|
|
sudo docker run -d --restart unless-stopped --stop-timeout 300 \
|
|
-p 28967:28967 \
|
|
-p 14002:14002 \
|
|
-e WALLET="0x9Ce80345355Ad8C17991620E13d8423900CEDcd0" \
|
|
-e EMAIL="awinhuang@gmail.com" \
|
|
-e ADDRESS="awin.myds.me:28967" \
|
|
-e STORAGE="2TB" \
|
|
--mount type=bind,source="/volume1/homes/awin/Storj/key",destination=/app/identity \
|
|
--mount type=bind,source="/volume1/docker/Storj/data",destination=/app/config \
|
|
--name storagenode storjlabs/storagenode:latest ;\
|
|
sudo docker ps -a
|
|
```
|
|
|
|
## Start/Stop service
|
|
### Windows
|
|
#### Start service
|
|
In PowerShell:
|
|
```powershell
|
|
Start-Service storagenode
|
|
```
|
|
|
|
#### Stop service
|
|
In PowerShell:
|
|
```powershell
|
|
Stop-Service storagenode
|
|
```
|
|
|
|
[^2]
|
|
|
|
[^1]: [How do I change values like wallet address or storage capacity? - Storj](https://documentation.storj.io/resources/faq/how-do-i-change-my-parameters-such-as-payout-address-allotted-storage-space-and-bandwidth)
|
|
[^2]: [How do I shutdown my node for system maintenance? - Storj](https://documentation.storj.io/resources/faq/system-maintenance)
|