This guide is a continuation of the previous two guides on the 0g_labs project, which you just definitely need to read if you haven't done it yet!
🔺 0G LABS install and setup guide
🔻 0G LABS storage node Install and setup guide
RAM | 16 GB |
---|---|
CPU | 4 cores |
DISK | 1 TB NVME SSD |
BANDWIDTH | 500 MBps |
<aside> 💥 If you still don't know how to do this, then it means you haven't read the previous two guides, be sure to do it and only then come back here.
</aside>
git clone -b v1.1.0-testnet <https://github.com/0glabs/0g-storage-kv.git>
cd 0g-storage-kv
git submodule update --init
cargo build --release
config.toml
Copy config_example.toml
to config.toml
and edit the settings:
# RPC endpoint
rpc_listen_address
# List of storage service IPs, separated by commas
zgs_node_urls = "<http://ip1>:port1,<http://ip2>:port2,..."
# RPC endpoint for the layer one blockchain
blockchain_rpc_endpoint
# Flow contract address
log_contract_address
# Block number for synchronization, align with storage service
log_sync_start_block_number
# Storage nodes for data download, separated by commas
zgs_node_urls
cd run
../target/release/zgs_kv --config config.toml