当前位置:网站首页>Consumer installation and configuration
Consumer installation and configuration
2022-07-28 11:48:00 【Endless character】
One 、docker install consul
- consul Official address :github.com/hashicorp/consul
- docker Installation command :
docker run -d -p 8500:8500 -p 8300:8300 -p 8301:8301 -p 8302:8302 -p 8600:8600/udp consul consul agent -dev -client=0.0.0.0


Two 、web visit consul
- The default access port is 8500:http://192.168.91.129:8500/,ip The address is modified according to your own address
- 8600 The port is dns The port of ,8500 yes http The port of : Both registration and service discovery are through 8500 port

3、 ... and 、dns visit
- Browser access process
- The browser will visit the domain name address first dns The server parses out ip and port
- Then use the returned ip and port To request

- windows Next hosts Modification of : route -> C:\Windows\System32\drivers\etc\hosts
- adopt hosts Modification of , You don't need to go to dns Server resolution , Direct access ip+port
- When the browser accesses the domain name , If you find that hosts It has been parsed , It won't come again dns The server requested
- In microservices dns:consul Support dns service , For service gateway , Registry Center consul It's a dns The server

- linux View in consul Of dns:
dig- If the prompt cannot be found dig command , Just use the command to install :
yum install bind-utils
- If the prompt cannot be found dig command , Just use the command to install :

- consul Of dns Run the command :
dig @192.168.91.129 -p 8600 consul.service.consul SRV- Each service will generate a domain name , The prefix of the domain name is the service name or service id, The domain name suffix is service.consul


边栏推荐
- [pyGame practice] the super interesting bubble game is coming - may you be childlike and always happy and simple~
- Final modifier attribute
- An example of the mandatory measures of Microsoft edge browser tracking prevention
- Server online speed measurement system source code
- Byte side: how to realize reliable transmission with UDP?
- 移动端人脸风格化技术的应用
- 在生产环境中每天Oracle监控到的无效对象一般怎么去处理?
- Outlook suddenly becomes very slow and too laggy. How to solve it
- Advanced database technology learning notes 1 -- Oracle deployment and pl/sql overview
- Autumn recruit offer harvesters, and take the offers of major manufacturers at will
猜你喜欢

AlexNet—论文分析及复现

Minikube initial experience environment construction

Solutions to the disappearance of Jupiter, spyder, Anaconda prompt and navigator shortcut keys

Quickly deploy mqtt clusters on AWS using terraform

Will PFP be the future of digital collections?

Digital twin rail transit: "intelligent" monitoring to clear the pain points of urban operation

Introduction to web security RADIUS protocol application

Sirius network verification source code / official genuine / included building tutorial

Globalthis is not defined solution

Leecode8 string conversion integer (ATOI)
随机推荐
Reflect 机制获取Class 的属性和方法信息
Let me think about Linear Algebra: a summary of basic learning of linear algebra
R language uses LM function to build regression model and regression model for transformed data (for example, it is necessary to build regression model for X and y, but they have no linear relationshi
How to use JWT for authentication and authorization
一种比读写锁更快的锁,还不赶紧认识一下
Object to object mapping -automapper
Iterative method for determinant (linear algebraic formula)
Interfaces and abstract classes
Four advantages of verification code to ensure mailbox security
I want to ask you guys, if there is a master-slave switch when CDC collects mysql, is there any solution
多线程与高并发(三)—— 源码解析 AQS 原理
Database advanced learning notes cursor
R language ggplot2 visualization: ggdensity function of ggpubr package visualizes density graph and uses stat_ overlay_ normal_ Density function superimposes positive distribution curve, custom config
jar 包内文件的遍历以及文件的拷贝
ES6知识点补充
Globalthis is not defined solution
[cesium] entity property and timing binding: the sampledproperty method is simple to use
Jupiter、spyder、Anaconda Prompt 、navigator 快捷键消失的解决办法
R language - some metrics for unbalanced data sets
Zotero document manager and its use posture (updated from time to time)