1、Gateway和Nacos Server 在一起的。
2、
[root@iZ2vceej7yes19qvuh5ilfZ ~]# curl http://localhost:8848/nacos
[root@iZ2vceej7yes19qvuh5ilfZ ~]#
3、Gateway 改了代码,还是报错。
报错后,查看到nacos已经关闭了,netstat -lnpt看不到8848了。
server-addr: localhost:8848
2020-11-06 11:00:42.706 ERROR 1579 --- [oundedElastic-3] c.a.c.n.d.r.NacosReactiveDiscoveryClient : get services from nacos server fail,
com.alibaba.nacos.api.exception.NacosException: failed to req API:/api//nacos/v1/ns/service/list after all servers([localhost:8848]) tried: java.net.ConnectException: 拒绝连接 (Connection refused)
at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:496) ~[nacos-client-1.2.1.jar!/:na]
at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:401) ~[nacos-client-1.2.1.jar!/:na]
at com.alibaba.nacos.client.naming.net.NamingProxy.reqAPI(NamingProxy.java:397) ~[nacos-client-1.2.1.jar!/:na]
at com.alibaba.nacos.client.naming.net.NamingProxy.getServiceList(NamingProxy.java:385) ~[nacos-client-1.2.1.jar!/:na]