一、先下载sentinel
(1)登录网址 https://github.com/alibaba/Sentinel/releases
(2)下载jar包
注:自己下载的sentinel在文件中放的位置一定记好地方
二、idea配置
(1)点击Edit
(2)然后找到点击+号:
(3)再找到shell script:
三:idea中Shell Script 详细配置
(1)在name上写sentinel
(2)在Script path找到自己java文件中的jdk
(3)在script options上写 -Dserver.port=8180 -Dcsp.sentinel.dashboard.server=localhost:8180 -Dproject.name=sentinel-dashboard -jar (此处写上你下载的sentinel在文件中放的位置) /sentinel-dashboard-1.8.0.jar (注:如果你下载的版本是1.8.2则更改版本)
(4)下面是script options的模板(粘贴的自己的)
-Dserver.port=8180 -Dcsp.sentinel.dashboard.server=localhost:8180 -Dproject.name=sentinel-dashboard -jar D:\sentinel/sentinel-dashboard-1.8.2.jar
(5) 结果
(6)启动senitenl