When I changed the port,execute nomad node status
an error has occurred
Error querying node status: Get “http://127.0.0.1:4646/v1/nodes”: dial tcp 127.0.0.1:4646: connect: connection refused
How can i solve it?
export NOMAD_ADDR=http://${NEW_ADDR}; nomad node status
should do the trick with ${NEW_ADDR}
being url:port
or ip:port
Hi ,Is there any other way to solve this?for example ,update client.hcl ,and systemctl restart nomad
nomad node status -address=http://${NEW_ADDR}
will work too. But this is a command in the agent/client mode so it wont use config files nor has an service entry.
got it and Thanks~~ Let me try it