consul

For more details, please read Document:

consul get-start

consul Docs

Below is short guide for using consul

Download, depend on your own system type:

https://www.consul.io/downloads.html

Permanently set $PATH on Linux/Unix:

#You need to add it to your ~/.profile or ~/.bashrc file. 
export PATH="$PATH:/path/to/dir"

#Depending on what you're doing, you also may want to symlink to binaries:
cd /usr/bin
sudo ln -s /path/to/binary binary-name

#Note that this will not automatically update your path for the remainder of the session. To do this, you should run:
source ~/.profile 
#or
source ~/.bashrc

Run Agent (test)

open an other terminal

consul members

check on website

curl localhost:8500/v1/catalog/nodes

close

Ctrl+C or ps & kill

  • run agent: consul agent -dev

  • join to group : consul join [IP] consul join

  • list all members: consul members

  • leave group: consul leave consul leave

consul CLI

consul agent -- Options

Blueking consul analysis

/etc/consul.conf

Last updated