配置nacos集群报错request: /nacos/v1/ns/instance/list failed, servers: [localhost:81/nacos], code: 500, msg

在学习配置Nacos集群的时报错如下,特此记录一下。

request: /nacos/v1/ns/instance/list failed, servers: [localhost:81/nacos], code: 500, msg: <html><body><h1>Whitelabel Error
Page</h1><p>This application has no explicit mapping for /error, so you are seeing this as a fallback.</p><div id='created'>
Tue Nov 08 19:48:41 CST 2022</div><div>There was an unexpected error (type=Not Found, status=404).</div></body></html>

配置Nacos集群时,通过Nginx反向代理后。后端服务一直报错找不到Nacos注册中心。主要是因为在nacos的cluster.conf配置中配置的注册中心服务没有完全启动。
在这里插入图片描述
如上图所示集群中的IP地址不要填写localhost127.0.0.1直接填写本机的IP地址即可。还有端口号不要写连续的,最好相隔一个或多个端口。
Nginx配置如下:
在这里插入图片描述
Nginx中集群的配置地址可以是127.0.0.1也可以是本机的IP地址。

猜你喜欢

转载自blog.csdn.net/qq_60361946/article/details/127759620
今日推荐