Welcome Zstake Service
0G Labs

Storage Node

storage systems play a critical role in managing, organizing, and ensuring the accessibility of data in traditional systems, data is often stored centrally, creating risks around availability, censorship, and data loss due to single points of failure decentralized storage, on the other hand, addresses these issues by distributing data across a network of nodes, enhancing security, resilience, and scalability this decentralization is essential, especially in an era where massive data sets are generated and consumed by ai, web3 applications, and large scale businesses 🖥️ hardware requirements ​ https //docs 0g ai/run a node/storage node#hardware requirements component storage node memory 32 gb ram cpu 8 cores disk 500gb / 1tb nvme ssd bandwidth 100 mbps (download / upload) 🛞 all in one script ⌨️ source <(curl s https //raw\ githubusercontent com/zstake xyz/test/refs/heads/main/0g storage all in one sh) # all in one toml 🛰️ auto version update ⌨️ source <(curl s https //raw\ githubusercontent com/zstake xyz/test/refs/heads/main/0g storage update sh) 🕹️ manual installer without snapshot 1\ install necessary packages ⌨️ sudo apt get install cargo git clang cmake build essential openssl pkg config libssl dev 2\ install rust programming language ⌨️ curl proto '=https' tlsv1 2 ssf https //sh rustup rs | sh 3\ clone the 0g storage node repository from github ⌨️ git clone b v1 0 0 https //github com/0glabs/0g storage node git 4\ build the project in release mode ⌨️ cd $home/0g storage node git stash git fetch all tags git checkout 347cd3e git submodule update init cargo build release 5\ edit the configuration file depending on your node type, select and apply only one of the following turbo contract rm rf $home/0g storage node/run/config toml curl o $home/0g storage node/run/config toml https //raw\ githubusercontent com/zstake xyz/test/refs/heads/main/0g storage turbo toml nano $home/0g storage node/run/config toml please check and enter "miner key" evm private key 6\ create a systemd service file ⌨️ sudo tee /etc/systemd/system/zgs service > /dev/null <\<eof \[unit] description=zgs node after=network target \[service] user=$user workingdirectory=$home/0g storage node/run execstart=$home/0g storage node/target/release/zgs node config $home/0g storage node/run/config toml restart=on failure restartsec=10 limitnofile=65535 \[install] wantedby=multi user target eof 7\ start the service immediately ⌨️ sudo systemctl daemon reload && sudo systemctl enable zgs && sudo systemctl start zgs ⌨️ useful commands 8\ log check ⌨️ tail f /0g storage node/run/log/zgs log $(tz=utc date +%y %m %d) 9\ block sync check ⌨️ source <(curl s https //raw\ githubusercontent com/zstake xyz/test/refs/heads/main/zgs test sh) 10\ storage node version check ⌨️ cd $home/0g storage node && git log decorate=short oneline | grep "tag v" | head n 1 && git log 1 pretty=oneline # zgs version