无法启动

Blade 未结 1 722
摇一柄桂浆在木兰舟中
悬赏:5

一、该问题的重现步骤是什么?

1. 

Connected to the target VM, address: '127.0.0.1:50220', transport: 'socket'

----启动中,读取到的环境变量:[dev],jar地址:[/Users/yanghongcheng/Desktop/SpringBlade/blade-service/blade-desk/target/classes/]----

2021-01-12 21:02:21.341  INFO 95764 --- [kground-preinit] o.h.validator.internal.util.Version      : HV000001: Hibernate Validator 6.1.6.Final

 _____               _                 ______  _             _

/  ___|             (_)                | ___ \| |           | |

\ `--.  _ __   _ __  _  _ __    __ _   | |_/ /| |  __ _   __| |  ___

 `--. \| '_ \ | '__|| || '_ \  / _` |  | ___ \| | / _` | / _` | / _ \

/\__/ /| |_) || |   | || | | || (_| |  | |_/ /| || (_| || (_| ||  __/

\____/ | .__/ |_|   |_||_| |_| \__, |  \____/ |_| \__,_| \__,_| \___|

       | |                      __/ |

       |_|                     |___/


:: SpringBlade :: blade-desk:dev :: Running SpringBoot 2.4.1 :: 


2021-01-12 21:02:22.614 ERROR 95764 --- [           main] c.a.n.c.config.http.ServerHttpAgent      : [NACOS ConnectException httpGet] currentServerAddr:http://127.0.0.1:8848, err : Connection refused (Connection refused)

2021-01-12 21:02:22.807 ERROR 95764 --- [           main] c.a.n.c.config.http.ServerHttpAgent      : [NACOS ConnectException httpGet] currentServerAddr:http://127.0.0.1:8848, err : Connection refused (Connection refused)

2021-01-12 21:02:23.004 ERROR 95764 --- [           main] c.a.n.c.config.http.ServerHttpAgent      : [NACOS ConnectException httpGet] currentServerAddr:http://127.0.0.1:8848, err : Connection refused (Connection refused)

2021-01-12 21:02:23.206 ERROR 95764 --- [           main] c.a.n.c.config.http.ServerHttpAgent      : [NACOS ConnectException httpGet] currentServerAddr:http://127.0.0.1:8848, err : Connection refused (Connection refused)

2021-01-12 21:02:23.213 ERROR 95764 --- [           main] c.a.n.client.config.impl.ClientWorker    : [fixed-127.0.0.1_8848] [sub-server] get server config exception, dataId=blade, group=DEFAULT_GROUP, tenant=

2. 已根据https://www.kancloud.cn/smallchill/blade/913215文档中的要求修改nacos地址,无法启动


image.png


二、你期待的结果是什么?实际看到的又是什么?


三、你正在使用的是什么产品,什么版本?在什么操作系统上?


四、请提供详细的错误堆栈信息,这很重要。


五、若有更多详细信息,请在下面提供。

1条回答
  • 2021-01-12 22:24

    LauncherConstant.nacosAddr方法传入的是环境变量,会根据环境来切换预设好的三种地址,你传ip进去是没有用的

    image.png


    如果你要自己改ip,可以把LauncherConstant.nacosAddr("192.168.2.13:8848")直接改成 "192.168.2.13:8848"

    0 讨论(0)
提交回复