码迷,mamicode.com
首页 > 系统相关 > 详细

(dev mode) install CONSUL on ubuntu

时间:2019-02-20 09:19:55      阅读:217      评论:0      收藏:0      [点我收藏+]

标签:nbsp   zip   version   toc   date   ddr   mod   ISE   mat   

WSL: V18.04.1

 

1. install

$sudo apt-get install consul
wsl1017@DESKTOP-14G6K9S:~$ consul version
Consul 0.6.4.dev
Consul Protocol: 3 (Understands back to: 1)

 

 

2. run

$consul agent -dev -bind 192.168.1.114
wsl1017@DESKTOP-14G6K9S:~$ consul agent -dev -bind 192.168.1.114
==> Starting Consul agent...
==> Starting Consul agent RPC...
==> Consul agent running!
         Node name: ‘DESKTOP-14G6K9S‘
        Datacenter: ‘dc1‘
            Server: true (bootstrap: false)
       Client Addr: 127.0.0.1 (HTTP: 8500, HTTPS: -1, DNS: 8600, RPC: 8400)
      Cluster Addr: 192.168.1.114 (LAN: 8301, WAN: 8302)
    Gossip encrypt: false, RPC-TLS: false, TLS-Incoming: false
             Atlas: <disabled>

 

http://localhost:8500/ui

 

3. update

    1) down

$wget https://releases.hashicorp.com/consul/1.4.1/consul_1.4.1_linux_amd64.zip

 

    2) unzip

$unzip consul_1.4.1_linux_amd64.zip

 

   3) move

$sudo mv consul /usr/local/bin
wsl1103@DESKTOP-14G6K9S:~$ consul version
Consul v1.4.1
Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents)

 

 

Reference:

    1. 《Ubuntu安装consul和consul ui

    2. 《[Consul]Error starting agent: Failed to get advertise address: Multiple private IPs found.

 

(dev mode) install CONSUL on ubuntu

标签:nbsp   zip   version   toc   date   ddr   mod   ISE   mat   

原文地址:https://www.cnblogs.com/xiaobin-hlj80/p/10404368.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!