Running a Coreum Node

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

Running Coreum with Binary

Prerequisites

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

Steps

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

Configuring cored

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