随笔分类 -  consul

摘要:Consul 安装启动ui,外网无法访问,应为Consul 默认绑定127.0.0.1 ,所以外网无法访问。 通过设置 -client 参数来设置 consul agent -server -bootstrap-expect=1 -data-dir=/tmp/consul -node=consul 阅读全文
posted @ 2018-07-16 16:58 jiewus 阅读(3219) 评论(1) 推荐(0)
摘要:1、创建.net core web程序并运行 2、在Consul中注册该服务 Consul支持两种服务注册的方式,一种是通过Consul的服务注册HTTP API,由服务自身在启动后调用API注册自己,另外一种则是通过在配置文件中定义服务的方式进行注册。Consul文档中建议使用后面一种方式来做服务 阅读全文
posted @ 2017-05-10 14:04 jiewus 阅读(3684) 评论(0) 推荐(0)
摘要:1、准备4台服务器 linux1 192.168.56.101 linux2 192.168.56.102 linux3 192.168.56.103 linux4 192.168.56.104 2、下载并解压Consul文件,拷贝到/usr/local/bin目录下 3、启动Consul集群 4、 阅读全文
posted @ 2017-05-10 13:25 jiewus 阅读(5152) 评论(2) 推荐(1)