CTRL + C in the terminal window where you’re running the node.
There is a known issue where sometimes this doesn’t kill the node. In that case:
CTRL + Z in the terminal window where you’re running the node. This should print something like:
+ Stopped /home/youruser/go/src/github.com/ava-labs/avalanchego/build/avalanche
kill -9 %1 (or
kill -9 %2 if it printed
+ Stopped, etc.)
If you run your node as a service (if you have installed it using the installer script, for example), then you can use the
sudo systemctl stop avalanchego to stop the node and
sudo systemctl start avalanchego to run it again.