手把手教你搭建ELA超级节点

准备阶段

(字母和文字为斜体的为执行命令,复制即可用,来源:链世界节点实战)

系统要求 ubuntu 16以上版本

目录在/home/elastos下,请确保在root权限下执行

创建ela、did、token、carrier目录

mkdir -p /home/elastos/ela /home/elastos/did /home/elastos/token /home/elastos/carrier

下载节点所需文件

screen -R

—————————————开始复制—————————————

wget -c -P /home/elastos/ela https://github.com/elastos/Elastos.ELA/releases/download/v0.3.2/ela & wget -c -P /home/elastos/ela https://github.com/elastos/Elastos.ELA/releases/download/v0.3.2/ela-cli & wget https://raw.githubusercontent.com/elastos/Elastos.ELA/master/docs/dpos_config.json.sample -O /home/elastos/ela/config.json & wget -c -P /home/elastos/did https://github.com/elastos/Elastos.ELA.SideChain.ID/releases/download/v0.1.2/did & wget https://raw.githubusercontent.com/elastos/Elastos.ELA.SideChain.ID/master/docs/mainnet_config.json.sample -O /home/elastos/did/config.json & wget -c -P /home/elastos/token https://github.com/elastos/Elastos.ELA.SideChain.Token/releases/download/v0.1.2/token & wget https://github.com/elastos/Elastos.ELA.SideChain.Token/blob/master/docs/mainnet_config.json.sample -O -P /home/elastos/token/config.json & wget -c-P /home/elastos/carrier https://github.com/elastos/Elastos.NET.Carrier.Bootstrap/releases/download/release-v5.2.3/elastos-carrier-bootstrap-5.2.623351-linux-x86_64-Debug.deb &

—————————————结束复制—————————————

放置后台慢慢下载

CTRL+A+D

下载结束后

执行权限命令

chmod -R 777 /home/elastos

ELA节点

cd /home/elastos/ela

./ela-cli wallet create

输入密码

ADDRESS PUBLIC KEY

———————————- ——————————————————————

Eb9R8GDrz1******yvPDjx3T87m9t 0244c65053dbe6bf9d9dbd2e42e*****49e838c730afbe157aa91ad9758

选中保存下来,(后续 public key需要导入节点公钥)

vim config.json

修改ip(公网ip获取命令: curl ifconfig.me)

修改 请先按字母【 a 】移动光标 到需要修改的位置

:/IPAddress 公网ip

User修改为空

Pass修改为空

:/WhiteIPList 0.0.0.0

如下图

手把手教你搭建ELA超级节点

保存退出

Esc

:wq

echo 密码 | nohup ./ela > /dev/null 2>output &

查看服务netstat -tunpl | grep ela

tcp 0 0 0.0.0.0:20336 0.0.0.0:* LISTEN 21184/ela

tcp 0 0 0.0.0.0:20338 0.0.0.0:* LISTEN 21184/ela

tcp 0 0 0.0.0.0:20339 0.0.0.0:* LISTEN 21184/ela

tcp6 0 0 :::20338 :::* LISTEN 21184/ela

tcp6 0 0 :::20339 :::* LISTEN 21184/ela

查询节点高度(可以多次执行 查看高度变化)

./ela-cli info getcurrentheight

结束进程(不用使用,后续维护时候使用)

ps -ef | grep ‘ela’ | grep -v grep | cut -c 9-15 | xargs kill -SIGINT

DID节点

cd /home/elastos/did

vim config.json

修改

RPCUser修改为空

RPCPass 修改为空

:/RPCWhiteIPList 0.0.0.0

修改如下图

手把手教你搭建ELA超级节点

启动DID

nohup ./did > /dev/null 2>output &

查看服务netstat -tunpl | grep did

tcp 0 0 0.0.0.0:20608 0.0.0.0:* LISTEN 21594/did

tcp6 0 0 :::20606 :::* LISTEN 21594/did

tcp6 0 0 :::20608 :::* LISTEN 21594/did

#结束进程(不用使用)

ps -ef | grep ‘did’ | grep -v grep | cut -c 9-15 | xargs kill -SIGINT

TOKEN节点

cd /home/elastos/token

vim config.json

修改

RPCUser修改为空

RPCPass 修改为空

:/RPCWhiteIPList 0.0.0.0

修改如下图

手把手教你搭建ELA超级节点

启动TOKEN侧链

nohup ./token > /dev/null 2>output &

查看进程netstat -tunpl | grep token

tcp 0 0 0.0.0.0:20618 0.0.0.0:* LISTEN 21762/token

tcp6 0 0 :::20616 :::* LISTEN 21762/token

tcp6 0 0 :::20618 :::* LISTEN 21762/token

Carrier节点

cd /home/elastos/carrier

执行权限命令

chmod -R 777 /home/elastos

sudo dpkg -i /home/elastos/carrier/elastos-carrier-bootstrap-5.2.623351-linux-x86_64-Debug.deb

查看状态

sudo systemctl status ela-bootstrapd

返回Active: active (running) 代表启动成功

原创:链世界 SWeiNi

为您推荐