Evmos 测试网在Cosmovisor运行教程

安装go

# Remove any existing go installation
sudo rm -rf /usr/local/go
# Install the latest version of Go with this helpful script
curl https://raw.githubusercontent.com/canha/golang-tools-install-script/master/goinstall.sh | bash
# Update environment variables to include go
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
#Housekeeping
source $HOME/.profile
go version

安装Evmos

git clone https://github.com/tharsis/evmos.git
cd evmos
make install

安装Cosmovisor

git clone https://github.com/cosmos/cosmos-sdk
cd cosmos-sdk
git checkout v0.44.2
make cosmovisor
cp cosmovisor/cosmovisor $GOPATH/bin/cosmovisor
cd $HOME
mkdir -p ~/.evmosd
mkdir -p ~/.evmosd/cosmovisor
mkdir -p ~/.evmosd/cosmovisor/genesis
mkdir -p ~/.evmosd/cosmovisor/genesis/bin
mkdir -p ~/.evmosd/cosmovisor/upgrades
echo "# Setup Cosmovisor" >> ~/.profile
echo "export DAEMON_NAME=evmosd" >> ~/.profile
echo "export DAEMON_HOME=$HOME/.evmosd" >> ~/.profile
source ~/.profile
cp $GOPATH/bin/evmosd ~/.evmosd/cosmovisor/genesis/bin
sudo tee /etc/systemd/system/evmosd.service > /dev/null <<EOF  
[Unit]
Description=Evmos Daemon
After=network-online.target
[Service]
User=<yourUserName>
ExecStart=$(which cosmovisor) start
Restart=always
RestartSec=3
LimitNOFILE=infinityEnvironment="DAEMON_HOME=$HOME/.evmosd"
Environment="DAEMON_NAME=evmosd"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
[Install]
WantedBy=multi-user.target
EOF
sudo -S systemctl daemon-reload
sudo -S systemctl enable evmosd
sudo -S systemctl start evmosd
sudo -S systemctl status evmosd

Evmos Olympus Mons v0.4.2 升级

cd ~
mkdir ~/.evmosd/cosmovisor/upgrades/Olympus-Mons-v0.4.1
mkdir ~/.evmosd/cosmovisor/upgrades/Olympus-Mons-v0.4.1/binrm -R evmos
git clone https://github.com/tharsis/evmos.git
cd evmos
git checkout v0.4.2
make install
cp $GOPATH/bin/evmosd ~/.evmosd/cosmovisor/upgrades/Olympus-Mons-v0.4.1/bin

--

--

Artifact Staking is a cutting edge, forward leaning blockchain infrastructure provider.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Artifact Staking

Artifact Staking

Artifact Staking is a cutting edge, forward leaning blockchain infrastructure provider.