Node

Deploy Chain Services

Preparation

apt-get install gcc
wget https://go.dev/dl/go1.21.6.linux-amd64.tar.gz
tar zvxf go1.21.6.linux-amd64.tar.gz
mkdir -p /data/go
mv go /data/go/go1.21.6
vim /etc/profile
//"Add at the end"
export GOROOT=/data/go/go1.21.6
export GOPATH=/data/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
//"Save and close"
source /etc/profile
go version

If the Go version number can be printed out in the end, it indicates that the installation was successful. To ensure the node participates in the network, please open port 26656.

Download Code

Installation

Run the installation script.

Verify the installation.

Check if the following content is displayed.

Initialization

Initialize the node. Replace MONIKER and HOMEDIR with the desired nickname and path.

Download chain data.

Copy chain data.

Modify the p2p configuration.

Modify the contents of the following fields in the config.

Run

Run in the foreground.

Run in the background.

Last updated