zkrzhangdb / clouds

学习

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

依次启动eureka-server、compute-service、eureka-ribbon工程
访问http://localhost:1111/可以看到注册中心的状态
访问http://localhost:3333/add,页面显示:30
关闭compute-service服务后再访问http://localhost:3333/add,页面显示:error
-----------------------------------------------------
RegisterCenter  服务注册中心   多个服务注册中心可以实现高可用
ServiceA , ServiceB , ServiceProvider  服务提供者
Ribbon 负载均衡
ConfigServer   配置中心
ConfigTest     配置测试
Zuul 网关
-----------------------------------------------------
启动服务注册中心 :RegisterCenter
启动配置服务 :ConfigServer
启动网关服务:Zuul
启动负载中心:Ribbon
启动为服务:ConfigTest(7002/7003)
访问 http://localhost:5555/getway/from?accessToken=token
ConfigServer 7001 发送post请求 http://localhost:7001/bus/refresh (火狐 RESTClient 插件)
再次访问
http://localhost:5555/getway/from?accessToken=token
------------------------------------------------------




http://localhost:5555/getway/from?accessToken=token

About

学习


Languages

Language:Java 100.0%