1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| consul agent -data-dir=/tmp/consul
==> No private IPv4 address found
consul agent -server -data-dir=/tmp/consul -bind=<my ip>
==> Starting Consul agent... ==> Consul agent running! Version: 'v1.2.1' Node ID: 'e5d57d8e-5d28-89b7-8aeb-ef89cd55bba5' Node name: 'hechenfengdeMacBook-Pro.local' Datacenter: 'dc1' (Segment: '<all>') Server: true (Bootstrap: false) Client Addr: [127.0.0.1] (HTTP: 8500, HTTPS: -1, DNS: 8600) Cluster Addr: <my ip> (LAN: 8301, WAN: 8302) Encrypt: Gossip: false, TLS-Outgoing: false, TLS-Incoming: false
|