AnyNodes
TwitterTelegram
  • Instruction
    • VPS
    • Dedicated Server
  • Bitcoin
    • Atomicals
      • atomicals-electrumx
      • electrumx-proxy
      • Use custom proxy
  • Mainnet
    • Massa
      • Run massa node as a service
      • AutoBuyRolls
      • Terms
    • Fusion
    • Nym
      • Setup nym-node
      • Run nym-node as a service
      • Bonding
    • HOPR
      • Node upgrade
      • Node migration
  • Testnet
    • SwanChain
    • EthStorage
      • Hardware Recommendations for Optimal Mining Power
      • Know your disk
      • Monitoring bot
    • SHDW
    • Dusk
    • Shardeum
    • HOPR
    • Massa
    • Nibiru
    • 0G.ai
  • Continuous Integration
    • GitHub Actions
  • Arbitrage
    • CEX/DEX
Powered by GitBook
On this page
  • Install
  • Upgrade
  1. Mainnet
  2. Nym

Setup nym-node

These are steps to setup nym-node using the new all in one binary.

Install

Step 1: Preparation

# export node name
monikor=AnyNodes

# prepare workspace
mkidr -p ~/nym
cd nym

# download pre-compiled nym-node binary, not nym-mixnode
wget https://github.com/nymtech/nym/releases/download/nym-binaries-v2024.13-magura-patched/nym-node
chmod +x nym-node
cp nym-node /usr/local/bin

# https://nymtech.net/operators/nodes/setup.html#mode-mixnode
# Init node
nym-node run --id $monikor --init-only --mode mixnode --verloc-bind-address 0.0.0.0:1790 --public-ips "$(curl -4 https://ifconfig.me)"

# After Init, some node information can be configured in these .toml files
nano ~/.nym/nym-nodes/$monikor/config/config.toml
nano ~/.nym/nym-nodes/$monikor/description.toml

# Try to run the node, if it can start well
nym-node run --id $monikor --deny-init --mode mixnode
# if it can start well, Ctrl+C to close it. We will run it as a Service

Step 2: Run nym-node as a service

# export node name
monikor=AnyNodes

# Create service file
sudo tee /etc/systemd/system/nym-node.service > /dev/null <<EOL
[Unit]
Description=Nym Node
StartLimitInterval=350
StartLimitBurst=10

[Service]
User=$USER
ExecStart=$HOME/nym/nym-node run --id $monikor --deny-init --mode mixnode
Restart=on-failure
RestartSec=30
LimitNOFILE=65535
KillSignal=SIGINT

[Install]
WantedBy=multi-user.target
EOL


systemctl daemon-reload
systemctl enable nym-node.service
service nym-node start

journalctl -u nym-node -f

Upgrade

Note: please make sure you followed the above the guide to setup node and run it as a service, otherwise the upgrade procedure is different.

# Go to nym workspace
cd ~/nym

# download the latest nym-node binary from github: https://github.com/nymtech/nym/releases
wget https://github.com/nymtech/nym/releases/download/nym-binaries-v2024.13-magura-patched/nym-node
chmod +x nym-node
cp nym-node /usr/local/bin

# restart service
service nym-node restart
service nym-node status

PreviousNymNextRun nym-node as a service

Last updated 5 months ago

Go to and find the latest nym-binaries-xxxx/nym-node.

https://github.com/nymtech/nym/releases