1. 下载并解压consul

  1. # cd /opt/
  2. # mkdir consul
  3. # chmod 777 consul
  4. # cd consul
  5. # wget https://releases.hashicorp.com/consul/1.5.3/consul_1.5.3_linux_arm64.zip
  6. [root@iZ8vb7gketandtfndfa8i7Z consul]# unzip consul_1.5.3_linux_arm64.zip
  7. Archive: consul_1.5.3_linux_arm64.zip
  8. inflating: consul
  9. [root@iZ8vb7gketandtfndfa8i7Z consul]# ls
  10. consul consul_1.5.3_linux_arm64.zip
  11. [root@iZ8vb7gketandtfndfa8i7Z consul]# cd consul
  12. -bash: cd: consul: Not a directory
  13. [root@iZ8vb7gketandtfndfa8i7Z consul]# ls
  14. consul consul_1.5.3_linux_arm64.zip
  15. [root@iZ8vb7gketandtfndfa8i7Z consul]# cp consul /usr/local/bin/