单机安装 consul ui 对外提供服务

Consul 安装启动ui,外网无法访问,应为Consul 默认绑定127.0.0.1 ,所以外网无法访问。

 

通过设置 -client 参数来设置

    consul agent -server -bootstrap-expect=1 -data-dir=/tmp/consul -node=consul -bind=xxx.xxx.xxx.xxx -ui -client=0.0.0.0

 

猜你喜欢

转载自www.cnblogs.com/learn-dotnet/p/9318590.html