在本机开发环境中,直接通过以下命令可以启动一个单机consul服务器:
./consul agent -server -data-dir=/tmp/consul -bootstrap -advertise=$LOCAL_IP

其中$LOCAL_IP为本地IP地址。

服务器启动后,可以通过$LOCAL_IP:8500使用consul服务。

 
 
 
 

相关文章:

  • 2021-04-26
  • 2021-10-27
  • 2021-08-31
  • 2022-02-21
  • 2021-05-10
  • 2022-03-04
  • 2022-12-23
  • 2021-10-20
猜你喜欢
  • 2022-12-23
  • 2021-11-24
  • 2021-08-07
  • 2021-10-05
  • 2021-10-12
  • 2021-10-16
相关资源
相似解决方案