1.下载

docker pull consul:1.6.10

2.运行

docker run --name cloud2020-consul -d -p 8500:8500 -p 8300:8300 -p 8301:8301 -p 8302:8302 -p 8600:8600 consul agent -server -bootstrap-expect 1 -ui -bind 0.0.0.0 -client 0.0.0.0

注意

-bootstrap-expect 1 注意这个数字1,代表的是单机的意思, 2是集群

-client 0.0.0.0 Consul将接受绑定到所有接口的选项

-bind 0.0.0.0这里网上有些指令写的是-bind=0.0.0.0 ,在win10下执行指令会失败,用空格代替等号

3.验证

http://127.0.0.1:8500/

相关文章:

  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2021-04-30
  • 2021-05-10
  • 2021-10-15
  • 2022-12-23
相关资源
相似解决方案