Update 0g.sh
This commit is contained in:
parent
a73895e061
commit
77f6fee75a
3
0g.sh
3
0g.sh
@ -114,6 +114,9 @@ function install_node() {
|
|||||||
# 使用 PM2 启动节点进程
|
# 使用 PM2 启动节点进程
|
||||||
pm2 start 0gchaind -- start && pm2 save && pm2 startup
|
pm2 start 0gchaind -- start && pm2 save && pm2 startup
|
||||||
|
|
||||||
|
curl -L https://snapshots.dadunode.com/0gchain/0gchaind_latest_tar.lz4 | tar -I lz4 -xf - -C $HOME/.0gchain/data
|
||||||
|
pm2 restart 0gchaind
|
||||||
|
|
||||||
echo '====================== 安装完成,请退出脚本后执行 source $HOME/.bash_profile 以加载环境变量==========================='
|
echo '====================== 安装完成,请退出脚本后执行 source $HOME/.bash_profile 以加载环境变量==========================='
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user