-
方式一:
jar包下载地址:https://github.com/alibaba/Sentinel/releases
点击
-
方式二: 执行wget命令
wget https://github.com/alibaba/Sentinel/releases/download/1.8.1/sentinel-dashboard-1.8.1.jar
- 运行 jar包,后台运行,同目录创建日志文件
java -Dserver.port=8879 -Dcsp.sentinel.dashboard.server=localhost:8887 -Dproject.name=sentinel-dashboard -Dsentinel.dashboard.auth.username=admin -Dsentinel.dashboard.auth.password=admin -jar sentinel-dashboard-1.8.6.jar > log.file 2>&1 &
控制台端口
-Dserver.port=8879
监控控制台端口
-Dcsp.sentinel.dashboard.server=localhost:8887
项目名
-Dproject.name=sentinel-dashboard
username和password不加默认都是sentinal
登录用户名
-Dsentinel.dashboard.auth.username=admin
登录密码
-Dsentinel.dashboard.auth.password=admin
指向异步运行输出文件
> log.file 2>&1 &
- 开放防火墙端口
firewall-cmd --permanent --zone=public --add-port=8879/tcp
firewall-cmd --permanent --zone=public --add-port=8887/tcp
firewall-cmd --reload
firewall-cmd --permanent --zone=public --list-ports
[root@localhost sentinal]# java -Dserver.port=8879 -Dcsp.sentinel.dashboard.server=localhost:8887 -Dproject.name=sentinel-dashboard -Dsentinel.dashboard.auth.username=admin -Dsentinel.dashboard.auth.password=admin -jar sentinel-dashboard-1.8.6.jar > log.file 2>&1 &
[1] 1622
[root@localhost sentinal]# firewall-cmd --permanent --zone=public --list-ports
8081/tcp 80/tcp 8887/tcp 8879/tcp
- 浏览器打开