A .Consul profile:
1. What is:
Consul is an open source distributed service discovery and configuration management system, the company HashiCorp Go with language development.
It provides service management system of micro-services, distribution center, bus and other control functions. Each of these functions can be used individually as needed, it can also be used together to build a grid full range of services, in short, Consul provides a complete service grid solution.
It has many advantages. Includes: raft-based protocol, is relatively simple; support health check, while supporting HTTP and DNS protocols to support WAN clusters across data centers, providing cross-platform graphical interface, support for Linux, Mac, Windows
2. Why can:
Http and DNS service discovery provides two discovery mode
Health monitoring support a variety of ways, HTTP / TCP / Docker / Shell script customization
KV storage Key, Value storage
Consul multi-data center support multiple data center
Visual Web interface
3. Where under
https://www.consul.io/downloads.html
4. how to play
https://www.springcloud.cc/spring-cloud-consul.html
Second, install and run consul:
Installation instructions official website: https: //learn.hashicorp.com/consul/getting-started/install.html
1. linux installation consul:
download:
wget https://releases.hashicorp.com/consul/1.7.2/consul_1.7.2_linux_amd64.zip
Decompression:
unzip consul_1.7.2_linux_amd64.zip
mobile:
mv consul /usr/local/bin/consul
Consul to see if the installation was successful:
consul --version
start up:
Agent -dev Consul // localhost access Consul Agent -dev -client 0.0.0.0 -ui // IP access
Access test:
-nptl netstat // View port 8500 PS -ef | grep Consul // view the process number the kill -15 29935 // kill the process