一 Sentinel的作用
二 下载Sentinel
官网下载地址:https://github.com/alibaba/Sentinel/releases,选择下载当前稳定版,这里下载的是sentinel-dashboard-1.7.1.jar。
三 Sentinel安装和启动
(1). 将下载的sentinel-dashboard-1.7.1.jar上传到服务器192.168.1.7,通过命令启动,
nohup java -jar sentinel-dashboard-1.7.1.jar >log.file 2>&1 &
(2). 将192.168.1.1,192.168.1.2,192.168.1.3服务器上的用户微服务,商品微服务,订单微服务,网关全部启动。
(3).访问 http://192.168.1.7:8080 进入到sentinel管理控制台
第一次进来点簇点链路里面是空白的,需要我们访问一次微服务才能看见,访问下订单微服务http://192.168.1.13/order/save?userId=1&productId=1&amount=1&token=1
再次打开簇点链路