How to stop server and client agent using terminal command.
This depends on how these processes were started. If you are testing things out in dev mode, ctrl-c will stop them.
If you are running on Linux with systemd, you can use systemctl:
systemctl stop nomad (this works on both clients and servers - we use the same service name in both cases)
killall nomad ok to use ? It does the job.