Sentinal服务安装

  1. 方式一:
    jar包下载地址:https://github.com/alibaba/Sentinel/releases
    点击
    在这里插入图片描述

  2. 方式二: 执行wget命令

wget https://github.com/alibaba/Sentinel/releases/download/1.8.1/sentinel-dashboard-1.8.1.jar

在这里插入图片描述

  1. 运行 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 &
  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
  1. 浏览器打开
    在这里插入图片描述
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值