当前位置:网站首页>Consul installation
Consul installation
2022-07-05 07:53:00 【Ximu Qi】
Consul install
One 、Docker The way
1.1 lookup consul Mirror image
Use docker search consul View... In the warehouse consul Mirror image .
[[email protected] ~]# docker search consul
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
consul Consul is a datacenter runtime that provides… 1323 [OK]
progrium/consul 356 [OK]
hashicorp/consul Automatic build of consul based on the curre… 33 [OK]
hashicorp/consul-template Consul Template is a template renderer, noti… 28
gliderlabs/consul-agent 14 [OK]
jhipster/consul-config-loader A small docker based tool to load Spring Boo… 9 [OK]
hashicorp/consul-k8s First-class integrations between Consul and … 9 [OK]
prom/consul-exporter 9 [OK]
bitnami/consul Bitnami Docker Image for Consul 7 [OK]
edgexfoundry/docker-core-consul ARCHIVED! The legacy Consul service for olde… 5
consultent/azure-pipelines-vsts-agent Containerized agent for Azure Pipelines Self… 5
hashicorp/consul-enterprise Consul is a datacenter runtime that provides… 4
wdijkerman/consul Consul 1.8.2 running on Alpine 3.11 3 [OK]
myena/consul-backinator Command line Consul KV backup and restore ut… 3 [OK]
unifio/consul HashiCorp Consul 1
consult2016/ascdso-aws-hello-world 0
layer5/meshery-consul Meshery adapter for HashiCorp Consul 0
newrelic/k8s-nri-consul New Relic Infrastructure Consul Integration 0
ibmcom/consul-amd64 0
ibmcom/consul 0
ibmcom/consul-s390x Docker image for consul-s390x 0
ibmcom/consul-ppc64le Consul is a datacenter runtime that provides… 0
hashicorp/consul-k8s-control-plane First-class integrations between Consul and … 0
bitnami/consul-exporter 0
pdffiller/consul consul version - 0.8.1 0
1.2 Pull consul Mirror image
Use docker pull consul Pull consul Mirror image .
[[email protected] ~]# docker pull consul
Using default tag: latest
latest: Pulling from library/consul
df9b9388f04a: Downloading
7aa48d4bd8bb: Download complete
fa3ef9b012a5: Download complete
d239fc798a4c: Download complete
199124be58be: Download complete
5c3ccfe93b8b: Download complete
latest: Pulling from library/consul
df9b9388f04a: Pull complete
7aa48d4bd8bb: Pull complete
fa3ef9b012a5: Pull complete
d239fc798a4c: Pull complete
199124be58be: Pull complete
5c3ccfe93b8b: Pull complete
Digest: sha256:ee0735e34f80030c46002f71bc594f25e3f586202da8784b43b4050993ef2445
Status: Downloaded newer image for consul:latest
docker.io/library/consul:latest
1.3 start-up Consul Containers
1.3.1 Create a consul The Internet
docker network create consul
1.3.2 start-up Consul Containers
docker run --network consul --name consul -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
1.4 Port specification
8500: http port , be used for http Interface and web ui visit ;
8300: server rpc port , The same data center consul server Through this port ;
8301: serf lan port , The same data center consul client Communication through this port ; Used to deal with current datacenter in LAN Of gossip signal communication ;
8302: serf wan port , Different data centers consul server Communication through this port ; agent Server Use , Deal with other datacenter Of gossip signal communication ;
8600: dns port , For registered service discovery ;
1.5 Open relevant ports
8500:
firewall-cmd --zone=public --add-port=8500/tcp --permanent
8300:
firewall-cmd --zone=public --add-port=8300/tcp --permanent
8301:
firewall-cmd --zone=public --add-port=8301/tcp --permanent
8302:
firewall-cmd --zone=public --add-port=8302/tcp --permanent
8600:
firewall-cmd --zone=public --add-port=8600/tcp --permanent
service iptables restart :
firewall-cmd --reload
Look at the open ports :
firewall-cmd --list-port
1.6 verification
Because it has been opened UI Show , The opening address is as follows :http://192.168.1.222:8500
Two 、 Binary installation
2.1 download consul
Download address :https://releases.hashicorp.com/consul
Choose here consul_1.12.2 Version download :
Will download consul_1.12.2_linux_amd64.zip Upload to /tmp/consul/ Next .
2.2 decompression
Unpack the command :
unzip consul_1.12.2_linux_amd64.zip
If the :-bash: unzip: Command not found , You need to install unzip, And then try again .
yum -y install unzip
2.3 Check Consul
./consul
The following interface shows that the installation is successful .
[[email protected] consul]# ./consul
Usage: consul [--version] [--help] <command> [<args>]
Available commands are:
acl Interact with Consul's ACLs agent Runs a Consul agent catalog Interact with the catalog config Interact with Consul's Centralized Configurations
connect Interact with Consul Connect
debug Records a debugging archive for operators
event Fire a new event
exec Executes a command on Consul nodes
force-leave Forces a member of the cluster to enter the "left" state
info Provides debugging information for operators.
intention Interact with Connect service intentions
join Tell Consul agent to join cluster
keygen Generates a new encryption key
keyring Manages gossip layer encryption keys
kv Interact with the key-value store
leave Gracefully leaves the Consul cluster and shuts down
lock Execute a command holding a lock
login Login to Consul using an auth method
logout Destroy a Consul token created with login
maint Controls node or service maintenance mode
members Lists the members of a Consul cluster
monitor Stream logs from a Consul agent
operator Provides cluster-level tools for Consul operators
reload Triggers the agent to reload configuration files
rtt Estimates network round trip time between nodes
services Interact with services
snapshot Saves, restores and inspects snapshots of Consul server state
tls Builtin helpers for creating CAs and certificates
validate Validate config files/directories
version Prints the Consul version
watch Watch for changes in Consul
2.4 start-up Consul
my linux Ip Address 192.168.1.222
./consul agent -dev -ui -node=consul-dev -client=192.168.1.222
# or
nohup ./consul agent -dev -ui -node=consul-dev -client=192.168.1.222
2.5 verification
Because it has been opened UI Show , The opening address is as follows :http://192.168.1.222:8500
边栏推荐
- msys2
- Markdown tips
- Let me teach you how to develop a graphic editor
- Global and Chinese market of digital shore durometer 2022-2028: Research Report on technology, participants, trends, market size and share
- UEFI development learning 2 - running ovmf in QEMU
- Opendrive arc drawing script
- Summary of STM32 serial port sending and receiving data methods
- The printer encountered an abnormal configuration problem 0x8007007e (win10)
- Distinction between heap and stack
- Consul安装
猜你喜欢

Realization of binary relation of discrete mathematics with C language and its properties

The printer encountered an abnormal configuration problem 0x8007007e (win10)

Package ‘*****‘ has no installation candidate

Create inf module in AMI code

MySQL blind note common functions

Practical application cases of digital Twins - fans

C language uses arrays to realize the intersection, union, difference and complement of sets

Logistic regression: the most basic neural network

How to migrate the device data accessed by the RTSP of the easycvr platform to easynvr?

Win10 shortcut key
随机推荐
QT's excellent articles
Define in and define out
The printer encountered an abnormal configuration problem 0x8007007e (win10)
L'étude a révélé que le système de service à la clientèle du commerce électronique transfrontalier a ces cinq fonctions!
Global and Chinese markets for waste treatment air switches 2022-2028: Research Report on technology, participants, trends, market size and share
High end electronic chips help upgrade traditional oil particle monitoring
Summary of STM32 serial port sending and receiving data methods
Software designer: 03 database system
Ads learning record (lna_atf54143)
NSIS search folder
万字详解八大排序 必读(代码+动图演示)
Batch modify the txt file code to UTF-8 (notepad++)
Global and Chinese market of urban rail connectors 2022-2028: Research Report on technology, participants, trends, market size and share
[professional literacy] core conferences and periodicals in the field of integrated circuits
Global and Chinese markets for recycled boilers 2022-2028: Research Report on technology, participants, trends, market size and share
Opendrive arc drawing script
Gradle复合构建
.NET服务治理之限流中间件-FireflySoft.RateLimit
UEFI development learning 4 - getting to know variable services
Apple input method optimization