目录
1. 概述
首先创建一个最简单的spring boot项目,在pom中添加sentinel的依赖,并配置sentinel-dashboard server的ip:port
启动 sentinel-dashboard
Linux环境
nohup java -Dserver.port=8080 -Dcsp.sentinel.dashboard.server=localhost:8080 -Dproject.name=sentinel-dashboard -jar sentinel-dashboard-1.8.1.jar >> sentinel.log &
windows环境
start /min java -Dserver.port=8080 -Dcsp.sentinel.dashboard.server=localhost:8080 -Dproject.name=sentinel-dashboard -jar D:\复习资料\微服务\sentinel\sentinel-dashboard-1.8.1.jar >> D:\复习资料\微服务\sentinel\sentinel.log &
启动springboot项目即可
2. 参考资料
代码下载地址:https://gitee.com/dove_usst/learn-microservice/tree/springboot-sentinel-demo-base/
sentinel-dashboard jar包下载地址 https://github.com/alibaba/Sentinel/releases