本篇內(nèi)容主要講解“windows怎么安裝consul”,感興趣的朋友不妨來(lái)看看。本文介紹的方法操作簡(jiǎn)單快捷,實(shí)用性強(qiáng)。下面就讓小編來(lái)帶大家學(xué)習(xí)“windows怎么安裝consul”吧!
我們提供的服務(wù)有:成都做網(wǎng)站、網(wǎng)站制作、微信公眾號(hào)開(kāi)發(fā)、網(wǎng)站優(yōu)化、網(wǎng)站認(rèn)證、蟠龍ssl等。為數(shù)千家企事業(yè)單位解決了網(wǎng)站和推廣的問(wèn)題。提供周到的售前咨詢和貼心的售后服務(wù),是有科學(xué)管理、有技術(shù)的蟠龍網(wǎng)站制作公司
官網(wǎng)下載速度慢,不推薦
?官網(wǎng)下載地址:https://www.consul.io/downloads.html?其他下載: https://javapro.lanzous.com/id77xza
打開(kāi) Windows PowerShell, 使用 .\consul.exe -h 查看命令幫助
PS C:\WINDOWS\system32> d:
PS D:\> cd .\consul_1.7.3_windows_amd64\
PS D:\consul_1.7.3_windows_amd64> .\consul.exe -h
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
運(yùn)行命令, 體驗(yàn)開(kāi)發(fā)版
PS D:\consul_1.7.3_windows_amd64> .\consul.exe agent -dev
notes: 以開(kāi)發(fā)版運(yùn)行的時(shí)候 K/V 不保存哦~
看到控制臺(tái)打印信息正常后,訪問(wèn) http://localhost:8500/ui/dc1/services
新建 server 服務(wù),指定 data-dir 保存數(shù)據(jù)
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 服務(wù)端?-bootstrap-expect: 在一個(gè) datacenter 中期望提供的 server 節(jié)點(diǎn)數(shù)目,當(dāng)該值提供的時(shí)候,consul 一直等到達(dá)到指定 server 數(shù)目的時(shí)候才會(huì)引導(dǎo)整個(gè)集群?-data-dir: 持久化數(shù)據(jù)目錄?-advertise: ip 地址,廣播地址?-client: 可訪問(wèn)服務(wù)的 ip?-config-dir:配置文件地址
測(cè)試 consul 持久化
新增一個(gè) Key/Value關(guān)閉,重新打開(kāi)還在,ok
windows - consul 的安裝到此結(jié)束了哦~
到此,相信大家對(duì)“windows怎么安裝consul”有了更深的了解,不妨來(lái)實(shí)際操作一番吧!這里是創(chuàng)新互聯(lián)網(wǎng)站,更多相關(guān)內(nèi)容可以進(jìn)入相關(guān)頻道進(jìn)行查詢,關(guān)注我們,繼續(xù)學(xué)習(xí)!
網(wǎng)站標(biāo)題:windows怎么安裝consul
文章URL:http://jinyejixie.com/article16/jjhpdg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站策劃、網(wǎng)站導(dǎo)航、企業(yè)網(wǎng)站制作、靜態(tài)網(wǎng)站、小程序開(kāi)發(fā)、標(biāo)簽優(yōu)化
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)