四、安装Sentinel

GitEgg...小于 1 分钟环境准备环境准备安装使用Sentinel

1. 下载 Sentinel 发布版本,地址https://github.com/alibaba/Sentinel/releasesopen in new window

2. 将下载的 jar 包 sentinel-dashboard-1.8.0.jar 上传到 CentOS7 服务器,Sentinel 是一个标准的 Spring Boot 应用,以 Spring Boot 的方式运行 jar 包即可,执行启动命令

nohup java -Dserver.port=8086 -Dproject.name=sentinel-dashboard -jar sentinel-dashboard-1.8.0.jar >/dev/null &

如果是 windows 系统环境,启动命令如下:

java -Dserver.port=8086 -Dcsp.sentinel.dashboard.server=127.0.0.1:8086 -Dproject.name=sentinel-dashboard -jar sentinel-dashboard-1.8.0.jar

3. 在浏览器输入测试的 http://ip:8086open in new window 即可访问登录界面,默认用户名密码为 sentinel/sentinel

4. 至此,一个简单的 Sentinel 就部署成功了,其他更详细功能及使用方式请参考:Sentinel WiKiopen in new window