1. Download the installation package
wget https://releases.hashicorp.com/consul/1.5.3/consul_1.5.3_linux_amd64.zip
2. Configure the global environment variables
- Extracting installation package
unzip consul_1.5.3_linux_amd64.zip
2. Global configuration
If you need to configure the global command, direct copy consul apply to / usr / local / bin to
3. Start consul
nohup ./consul agent -dev -client 0.0.0.0 -ui &
4. Review Process
[root@instance-n4r06itt consul]# ps -ef | grep consul
root 28395 20672 1 13:59 pts/0 00:00:05 ./consul agent -dev -client 0.0.0.0 -ui
root 28789 20672 0 14:06 pts/0 00:00:00 grep --color=auto consul
As shown above has been launched successfully!
5. Service Verification
Path: http: // ip: 8500 / ui
start success!