diff --git a/0g.sh b/0g.sh index df9f72e..840d6ab 100644 --- a/0g.sh +++ b/0g.sh @@ -263,6 +263,49 @@ echo '===进入对应路径:/0g-storage-node/run/log,使用tail -f logs文件 } + +function install_storage_kv() { + +# 克隆仓库 +git clone https://github.com/0glabs/0g-storage-kv.git + + +#进入对应目录构建 +cd 0g-storage-kv +git submodule update --init + +# 构建代码 +cargo build --release + +#后台运行 +cd run + +echo "请输入 blockchain_rpc_endpoint 的值: " +read blockchain_rpc_endpoint + +cat > config.toml <