xuperunion 安装和启动节点 ubuntu18.04

下载源码

从github下载,官方网址:git clone https://github.com/xuperchain/xuperunion.git

# github下载
git clone https://github.com/xuperchain/xuperunion.git

查看具体说明请点击wiki

编译源码

所需环境

# go >= 1.12
# git
# g++ >= 4.8.2
apt install g++

安装make

# 安装make
apt install make

编译源码

# 进入源码目录 
cd xuperunion
# 编译 时间根据机器性能决定
make

编译完成如下:

其中重点关注output

创建单节点并启动

复制output为node1,cp -r output node1

# 复制 output为node1
cp -r output node1
# 进入node1目录
cd node1

创建链

# 创建xuper链
./xchain-cli createChain

启动节点

# 启动服务节点
nohup ./xchain &

观察区块

# check服务运行状况  默认是37101
./xchain-cli status -H 127.0.0.1:37101

启动成功如下所示:

猜你喜欢

转载自www.cnblogs.com/ycx95/p/12123074.html
今日推荐