Install your node(s)
After preparing the user permissions, the script configurations and the keys, the actual node installation can begin. The Validator script is a multi-purpose tool for managing your node. For installation use
1 - install.
~/elrond-go-scripts-testnet/script.sh 1) install 2) observers 3) upgrade 4) upgrade_proxy 5) remove_db 6) start 7) stop 8) cleanup 9) github_pull 10) get_logs 11) quit Please select an action:1
- When asked, indicate the number of nodes you want to run, i.e.
- When asked, indicate the name for your validator, i.e.
- Quit the menu without starting (we need keys first) by using
11 - quit
Prepare your keys
Create a new folder "VALIDATOR_KEYS" to serve as local backup when updating:
cd ~ mkdir -p ~/VALIDATOR_KEYS
Generate a certificate file containing your Validator key by running the
Copy the generated
validatorKey.pem file to the
config folder of your node(s), repeat for each node.
cp validatorKey.pem ~/elrond-nodes/node-0/config/
Each node needs its unique
Then copy the
validatorKey.pem file - in ZIP form - to the
$HOME/VALIDATOR_KEYS/ folder . This is important for your node to be able to restart correctly after an upgrade.
zip node-0.zip validatorKey.pem mv node-0.zip $HOME/VALIDATOR_KEYS/
Repeat the above for all your “n” nodes. When complete, please refer to our Key management section for instructions about how to properly backup and protect your keys.
Start the node process
Run the script and select option
6 - start.
Start the node visual interface
Once the node has started, you can check how it’s doing, using the
TermUI interface. Navigate to your
$HOME/elrond-utils folder and start the
TermUI , one for each of your nodes:
$HOME/elrond-utils/termui -address localhost:8080
Your first node is called
node-0 and it its REST API will run on port
8080 by default. The next node is
8081, and so on.
Update your node(s)
Upgrade your node by running the script and selecting options:
9 - github_pulldownloads the latest version of the scripts
3 - upgrade
6 - start
11 - quit
cd ~/elrond-go-scripts-testnet ./script.sh
Backup your keys
Your private keys are needed to run your node. Losing them means losing control of your node.
Find them in
$HOME/elrond-nodes/node-0/config [be mindful of your “
Create a safe backup for them on storage outside of the server running your node(s).