Running a Terra2 Node

Running a Terra2 node is crucial for participating in the Terra2 network. This guide covers various methods to set up and run a Terra2 node, including binary executions.

Running Terra2 with Binary

Prerequisites

  • terrad Binary: Build or download the latest on-chain version of terrad.
  • Permissions: Ensure executable permissions for your binary.

Steps

  1. Execute terrad Binary: Run the command ./terrad [command] [flags]. For starting the daemon, use ./terrad start.
  2. Systemd Configuration: Configure terrad to run as a systemd service for reliability.
    • Move the binary to /usr/bin with cp terrad /usr/bin/.
    • Create and edit the systemd service file /etc/systemd/system/terrad.service with appropriate configurations.
  3. Manage Service:
    • Reload systemd: sudo systemctl daemon-reload
    • Restart terrad: sudo systemctl restart terrad
    • Enable on boot: sudo systemctl enable terrad
    • Check logs: journalctl -u terrad -f

Configuring terrad

  • Config Files: Located in $HOME/.terra/config.
    • config.toml: General settings.
    • app.toml: Application-specific settings.
    • client.toml: Stargaze client settings.