合约大陆去中心化跨链交易所研究中心

合约大陆泰链节点部署

2019-07-14  本文已影响0人  飞天小猪xxx

教程参见:https://github.com/ContractLand/terra-chain-node

1.准备一台全程服务器。

2.安装 git, docker, docker-compose ubuntu 18.04 为例

sudo apt-get update

sudo apt-get install git

Docker:

sudo apt-get install\apt-transport-https\ca-certificates\curl\gnupg-agent\software-properties-common

curl-fsSLhttps://download.docker.com/linux/ubuntu/gpg |sudo apt-key add -

sudo apt-key fingerprint 0EBFCD88

sudo add-apt-repository\"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release-cs) \ stable"

sudo apt-get update

sudo apt-get install docker-ce docker-ce-cli containerd.io

Docker Compose:

sudo curl-L"https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname-s)-$(uname-m)"-o/usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

sudo ln-s/usr/local/bin/docker-compose /usr/bin/docker-compose

3. 准备文件配置

git clone https://github.com/ContractLand/terra-chain-node.git

把 .env.example 重新命名成 .env.

修改.env 文件加上 validator 信息 (如果你正在跑一个Validator节点).

主网节点把NETWORK改成mainnet

# Network to connect to. (gaia is testnet, mainnet is mainnet)

NETWORK=mainnet

# Validator Address

VALIDATOR_ADDRESS=0x...

# IP Address

IP_ADDRESS=10.0.0.0

# Name of your node that will appear on the ethstats page

NODE_NAME=xxxx

# Ethstats page connecting details

DASHBOARD_IP=159.89.207.101

DASHBOARD_PORT=3001

DASHBOARD_SECRET=contractland

把你自己的钱包信息加入 key 文件夹中

跑./prepare_node.

跑全节点

开启节点 :docker-compose up -d full-node monitor.

确认你的节点再跑使用 docker ps 和 docker log命令

终止节点:docker-compose down.

通过docker log命令查看可看到节点正在同步信息

上一篇 下一篇

猜你喜欢

热点阅读