---
title: "Spring Cloud（13）——服务注册与发现工具Consul"
author: "234390216"
date: "2019-09-27T23:40:09Z"
tags: []
categories: ["开源软件"]
slug: "spring-cloud-13-consul"
draft: false
lastmod: "2019-09-27T23:42:31Z"
id: 2503444
url: "https://elim.iteye.com/blog/2503444"
---

# 服务注册与发现工具-Consul

Spring Cloud也可以使用[Consul](https://learn.hashicorp.com/consul)作为服务注册与发现工具。Consul和Eureka一样，也有服务端和客户端的概念，它们都需要基于Consul Agent运行，即Agent有Server模式和Client模式，开发环境可以直接通过`consul agent -dev`启动一个Agent，它默认会listen8500端口。

 

 

由于iteye提示包含敏感字，而我没找到包含的敏感字导致发布失败，更多信息请参考csdn的博文。

[https://blog.csdn.net/elim168/article/details/101569784](https://blog.csdn.net/elim168/article/details/101569784 "https://blog.csdn.net/elim168/article/details/101569784")

（注：本文是基于Spring Cloud Finchley.SR1所写）