Using Node.sh (deprecated)
This option is deprecated and is not supported anymore. Please update your node Using Node Binary.

1. Stop Systemd Service

1
sudo service harmony stop
Copied!

2. Backup Files

Create a folder called "backup" in case it does not exist:
1
mkdir -p backup
Copied!
Backup both node.sh and harmony binary file:
1
cp {node.sh,harmony} backup
Copied!

3. Download Node.sh

Before we proceed to next steps we need to download the necessary files:
Mainnet
Testnet
1
curl -LO https://harmony.one/node.sh && chmod +x node.sh
2
./node.sh -d && mv staging/* ./
Copied!
1
curl -LO https://harmony.one/node.sh && chmod +x node.sh
2
./node.sh -d -N testnet && mv staging/* ./
Copied!
Check the Binary CLI and node.sh version that was downloaded:
1
./harmony -V
2
./node.sh -v
Copied!

4. Restart Systemd Service

1
sudo service harmony restart
Copied!
To check your node follow instructions on Checking A Node.