TIPS本文基于Consul 1.5.3,理論適用于Consul 1.6及更低版本。 下載Consul百度盤加速器(Consul 1.5.3) 鏈接: https://pan.baidu.com/s/1Kyw5_duxW2TvEqb17YV9WQ
復制這段內容后打開百度網盤手機App,操作更方便哦
需要的端口Use | Default Ports |
---|
DNS: The DNS server (TCP and UDP) | 8600 | HTTP: The HTTP API (TCP Only) | 8500 | HTTPS: The HTTPs API | disabled (8501)* | gRPC: The gRPC API | disabled (8502)* | LAN Serf: The Serf LAN port (TCP and UDP) | 8301 | Wan Serf: The Serf WAN port TCP and UDP) | 8302 | server: Server RPC address (TCP Only) | 8300 | Sidecar Proxy Min: Inclusive min port number to use for automatically assigned sidecar service registrations. | 21000 | Sidecar Proxy Max: Inclusive max port number to use for automatically assigned sidecar service registrations. | 21255 |
檢查端口是否被占用的方法: Windows:
# 如果沒有結果說明沒有被占用
netstat -ano| findstr "8500"
Linux:
# 如果沒有結果說明沒有被占用
netstat -antp |grep 8500
macOS:
# 如果沒有結果說明沒有被占用
netstat -ant | grep 8500
或
lsof -i:8500
安裝 & 啟動解壓下載下來的壓縮包,將目錄切換到 consul 所在目錄 執(zhí)行如下命令即可: ./consul agent -dev -ui -client 0.0.0.0
驗證是否成功 ./consul -v
訪問Consul首頁 localhost:8500 ,可正常訪問頁面。
啟動參數TIPS目前暫時可以不關注,在后面Consul高可用一節(jié),會列出所有常用的Consul啟動參數。 在線Consul參考文檔本文首發(fā)http://www./spring-...
|