0g Storage KV Setup

Recommended Hardware: 4 Cores, 16GB RAM, 1TB of storage (NVME)

Install dependencies

sudo apt-get update -y
sudo apt-get install clang cmake build-essential -y
sudo apt install cargo

Install Go

cd $HOME && \
ver="1.22.0" && \
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz" && \
sudo rm -rf /usr/local/go && \
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz" && \
rm "go$ver.linux-amd64.tar.gz" && \
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile && \
source ~/.bash_profile && \
go version

Install rustup

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env

Install binary

git clone -b v1.3.0 https://github.com/0glabs/0g-storage-kv.git
cd $HOME/0g-storage-kv
git stash
git fetch --all --tags
git checkout 99c91d95a1d664ffdc9700ef492a00bd76c9c5d1
git submodule update --init
cargo build --release

Copy config.toml

Edit config.toml

Create zgskv service (storage KV node)

Start Storage KV node

Check logs

Last updated