首先我们要运行consul,运行有两种模式,分别是server和client,通过下面的命令开启:
consul agent -server # server运行模式 consul agent # client 运行模式