请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

linux nacos 闪退

老师,在本地链接nacos 没有问题,可是将system.jar 上传到linux上后,运行nacos 只要一执行 java -jar system.jar 命令后,nacos就发生闪退,是什么原因呢

正在回答 回答被采纳积分+3

2回答

提问者 Sinvirance 2021-08-23 14:10:55

找到原因了,将nacos的linux版本变成1.21就可以了,想不到linux版本要求这么严格,以为windows可以用Linux应该也没问题的,就一直没想这方面的原因

0 回复 有任何疑惑可以回复我~
提问者 Sinvirance 2021-08-22 18:14:52

2021-08-22 18:08:18.205 ERROR c.alibaba.nacos.client.config.http.ServerHttpAgent:102  ^[[32m        ^[[0;39m [NACOS ConnectException httpGet] currentServerAddr:http://127.0.0.1:8848, err : Connection refused (Connection refused)

2021-08-22 18:08:18.369 ERROR c.alibaba.nacos.client.config.http.ServerHttpAgent:102  ^[[32m        ^[[0;39m [NACOS ConnectException httpGet] currentServerAddr:http://127.0.0.1:8848, err : Connection refused (Connection refused)

2021-08-22 18:08:18.569 ERROR c.alibaba.nacos.client.config.http.ServerHttpAgent:102  ^[[32m        ^[[0;39m [NACOS ConnectException httpGet] currentServerAddr:http://127.0.0.1:8848, err : Connection refused (Connection refused)

2021-08-22 18:08:18.769 ERROR c.alibaba.nacos.client.config.http.ServerHttpAgent:102  ^[[32m        ^[[0;39m [NACOS ConnectException httpGet] currentServerAddr:http://127.0.0.1:8848, err : Connection refused (Connection refused)

2021-08-22 18:08:18.771 ERROR com.alibaba.nacos.client.config.impl.ClientWorker :235  ^[[32m        ^[[0;39m [fixed-127.0.0.1_8848] [sub-server] get server config exception, dataId=system, group=DEFAULT_GROUP, tenant=

java.net.ConnectException: [NACOS HTTP-GET] The maximum number of tolerable server reconnection errors has been reached

        at com.alibaba.nacos.client.config.http.ServerHttpAgent.httpGet(ServerHttpAgent.java:115)

        at com.alibaba.nacos.client.config.http.MetricsHttpAgent.httpGet(MetricsHttpAgent.java:48)

        at com.alibaba.nacos.client.config.impl.ClientWorker.getServerConfig(ClientWorker.java:230)

        at com.alibaba.nacos.client.config.NacosConfigService.getConfigInner(NacosConfigService.java:143)

        at com.alibaba.nacos.client.config.NacosConfigService.getConfig(NacosConfigService.java:92)

        at com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder.loadNacosData(NacosPropertySourceBuilder.java:85)

        at com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder.build(NacosPropertySourceBuilder.java:74)

        at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadNacosPropertySource(NacosPropertySourceLocator.java:204)

        at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadNacosDataIfPresent(NacosPropertySourceLocator.java:191)

        at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadApplicationConfiguration(NacosPropertySourceLocator.java:142)

        at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.locate(NacosPropertySourceLocator.java:103)

        at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:98)

        at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:626)

        at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:370)

        at org.springframework.boot.SpringApplication.run(SpringApplication.java:314)

        at top.course.system.config.SystemApplication.main(SystemApplication.java:25)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号