In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to install consul in windows". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to install consul in windows.
Windows installation consul download installation package
The download speed of the official website is slow and is not recommended.
Official website download address: https://www.consul.io/downloads.html other downloads: https://javapro.lanzous.com/id77xza
Decompression operation
Open Windows PowerShell and use.\ consul.exe-h to view command help
PS C:\ WINDOWS\ system32 > d:PS D:\ > cd.\ consul_1.7.3_windows_amd64\ PS D:\ consul_1.7.3_windows_amd64 >.\ consul.exe-hUsage: consul [--version] [--help] []
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 experience consul
Run the command to experience the development version
PS D:\ consul_1.7.3_windows_amd64 >.\ consul.exe agent-dev
Notes: it is not saved when running in the development version.
After seeing that the console print information is normal, visit http://localhost:8500/ui/dc1/services
Persistent data
Create a new server service and specify data-dir to save data
Consul agent-server-bootstrap-expect 1-data-dir "D://consul_1.7.3_windows_amd64/consul"-advertise 192.168.0.105-ui-node=server1-bind 192.168.0.105-client 0.0.0.0-rejoin-config-dir "D://consul_1.7.3_windows_amd64//config"
-server: consul server-bootstrap-expect: the number of server nodes expected to be provided in a datacenter. When this value is provided, consul will not boot the entire cluster until the specified number of server is reached-data-dir: persistent data directory-advertise: ip address, broadcast address-client: ip-config-dir: profile address of accessible service
Test consul persistence
Add a new Key/Value to close and reopen, ok
The installation of windows-consul is over.
At this point, I believe you have a deeper understanding of "windows how to install consul". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.