springcloud-thoth icon indicating copy to clipboard operation
springcloud-thoth copied to clipboard

项目如何启动

Open shushengming opened this issue 7 years ago • 7 comments
trafficstars

项目如何启动

shushengming avatar Jan 29 '18 12:01 shushengming

先启动,registry-server和config-server,然后ms随意启动一个就可以看到注册到了注册中心

liangliang1259 avatar Feb 06 '18 10:02 liangliang1259

com.sun.jersey.api.client.ClientHandlerException: java.net.UnknownHostException: registry-server 启动 了registry-server 和config-server 启动ms的时候报错! 这个是怎么处理啊

mainthings avatar Nov 22 '18 07:11 mainthings

config-server和registry-server分别是你自己的配置中心和注册中心(Eureka)的地址,你自己启动这两个服务之后,配置服务相应的ip即可

在 2018-11-22 15:23:52,"mainthings" [email protected] 写道:

com.sun.jersey.api.client.ClientHandlerException: java.net.UnknownHostException: registry-server 启动 了registry-server 和config-server 启动ms的时候报错! 这个是怎么处理啊

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

liangliang1259 avatar Nov 22 '18 07:11 liangliang1259

可以说说怎么配置吗 没有怎么弄过微服务这块 有点懵 准备学习一哈

mainthings avatar Nov 22 '18 07:11 mainthings

代码中有thoth-config-server 和 thoth-registry-server 分别对应配置中心和注册中心

md中有说明 registry-server就是注册中心eureka,这个对应配置中注册 eureka.client.serviceUrl.defaultZone 这个域名 config-server 就是配置中心 把这两个服务先启动

在 2018-11-22 15:30:20,"mainthings" [email protected] 写道:

可以说说怎么配置吗 没有怎么弄过微服务这块 有点懵 准备学习一哈

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

liangliang1259 avatar Nov 22 '18 09:11 liangliang1259

Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)

一直報錯,這個問題 說数据库连接不上 但是确认了配置是正确的

yuanlinqiang avatar Apr 15 '19 02:04 yuanlinqiang

这个GIT玩的不是很熟悉,首先启动了注册中心以及配置中心,导入脚本到对应DB,启动对应的rob-web提示:com.sun.jersey.api.client.ClientHandlerException: java.net.UnknownHostException: registry-server

Andey007 avatar May 25 '19 11:05 Andey007