分布式部署(不同服务存放不同服务器)
作者:互联网
192.168.8.231是kafka/zookeeper/nacos/redis
192.168.8.232是gateway:2019服务/back:9002服务
192.168.8.233是schedule:9006服务
1.修改bootstrap.yml中的nacos地址
fisher-gateway-service
fisher-back-service
fisher-schedule-service
2.修改nacos中的nacos地址
fisher-gateway-service
fisher-back-service
fisher-schedule-service
3.测试接口
http://192.168.8.232:9002/menu/selectMenuTreeByRole
http://192.168.8.233:9006/publishPlan/selectInOutPortView?current=1&size=1000&shipStatus=%E8%BF%9B%E5%8F%A3&ascSort=PLAN_BERTH_TIME
4.测试通过路由跳转
http://192.168.8.232:2019/admin/menu/selectMenuTreeByRole
http://192.168.8.232:2019/schedule/publishPlan/selectInOutPortView?current=1&size=1000&shipStatus=%E8%BF%9B%E5%8F%A3&ascSort=PLAN_BERTH_TIME
标签:http,service,schedule,不同,nacos,192.168,fisher,服务器,分布式 来源: https://blog.csdn.net/qq_18896247/article/details/123204334