This is probably a very simple question for you, but I just get to the consul and for testing, I want to run several servers on my PC. For example, I start the first server with
consul agent -server -bootstrap-expect=1 -dc=dev -data-dir=/tmp/consul -ui-dir="c:/consul 0.5.2/dist"
and then I try to start the second server using
consul agent -server -data-dir=/tmp/consul2 -dc=dc2
but he returns
==> Error starting agent: Failed to start Consul server: Failed to start RPC lay er: listen tcp 0.0.0.0:8300: bind: Only one usage of each socket address (protoc ol/network address/port) is normally permitted.
What am I missing in my team?
source share