Consul info error

151 views
Skip to first unread message

Jonez

unread,
Feb 22, 2018, 2:53:42 AM2/22/18
to Consul
Hi ,
  I'm new bee to Consul,i installed consul in Ubuntu 16.04 followed this link ( by  Precompiled Binaries installation).
after installation i get this error after executing this command

$ consul info

Error querying agent: Get http://127.0.0.1:8500/v1/agent/self: dial tcp 127.0.0.1:8500: getsockopt: connection refused

1- How to change the default IP(127.0.0.1) to my static IPAddress?

Om

unread,
Feb 22, 2018, 10:19:08 AM2/22/18
to Consul
Jonez,

 I believe that you ran the consul agent either in server mode or client mode after you installed the Consul .
If so, make sure that you use the argument --client=0.0.0.0 when starting the agent. 

Thanks,
Om.

Jim Denk

unread,
Feb 22, 2018, 10:30:01 AM2/22/18
to consu...@googlegroups.com
You might also try:

$ consul info -http-addr=<ip/hostname>:<port>


Jim


-- 
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/consul/issues
Community chat: https://gitter.im/hashicorp-consul/Lobby
--- 
You received this message because you are subscribed to the Google Groups "Consul" group.
To unsubscribe from this group and stop receiving emails from it, send an email to consul-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/consul-tool/300047ac-6579-4da2-a7ac-ef4d6122e8ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages