Sentinel Dashboard 1.8.9 部署+Systemd 托管完整操作文档

文档说明

程序包路径:/home/sentinel/sentinel-dashboard-1.8.9.jar

服务监听端口:8082,默认端口(8080)

日志目录:/root/logs,日志文件:sentinel-dashboard-1.8.9.log

管理命令:systemctl start/stop/restart/status sentinel-dashboard

相关jar包已经关联文章

一、官方部署文档及下载地址

https://github.com/alibaba/Sentinel/releases?spm=7145af80.204886dc.0.0.6e0c7021AmyMWG#release-1.8.9

进阶指南-阿里云Spring Cloud Alibaba官网

二、个人部署

1、创建存放 Sentinel 控制台jar包的目录

bash 复制代码
mkdir -p /home/sentinel

2、创建日志存放目录

bash 复制代码
mkdir -p /root/logs

3、编写 systemd 服务配置文件

bash 复制代码
[Unit]
Description=Sentinel Dashboard 1.8.9 Service
After=network.target

[Service]
User=root
WorkingDirectory=/home/sentinel
# 修复:改用systemd标准日志输出方式,兼容所有Linux系统,确保日志文件正常生成
ExecStart=/usr/bin/java \
-Dserver.port=8082 \
-Dcsp.sentinel.dashboard.server=localhost:8082 \
-Dproject.name=sentinel-dashboard \
-jar sentinel-dashboard-1.8.9.jar
# 固定日志输出路径,强制落地日志文件
StandardOutput=file:/root/logs/sentinel-dashboard-1.8.9.log
StandardError=file:/root/logs/sentinel-dashboard-1.8.9.log

# 进程退出自动重启
Restart=on-failure
RestartSec=3

# 进程最大打开文件数优化
LimitNOFILE=65535

[Install]
# 开机自启
WantedBy=multi-user.target

4、重载 systemd 配置、管理服务

bash 复制代码
systemctl daemon-reload

5、常用服务管理命令

bash 复制代码
# 启动服务
systemctl start sentinel-dashboard

# 停止服务
systemctl stop sentinel-dashboard

# 重启服务(更新jar包/修改配置后执行)
systemctl restart sentinel-dashboard

# 查看运行状态
systemctl status sentinel-dashboard

# 设置开机自启
systemctl enable sentinel-dashboard

# 取消开机自启
systemctl disable sentinel-dashboard

6、验证部署是否成功

bash 复制代码
systemctl status sentinel-dashboard

7、查看实时日志

bash 复制代码
tail -f /root/logs/sentinel-dashboard-1.8.9.log

三、服务访问

1、控制台

默认用户名/密码:sentinel

bash 复制代码
http://127.0.0.1:8082

2、注册服务

默认端口8719

相关推荐
YOU OU1 天前
Alibaba Sentinel
sentinel
流烟默1 天前
Sentinel 规则持久化到 Nacos 实践(网关篇 + 普通应用篇)
nacos·sentinel·规则持久化
莫得感情 o2 天前
Redis 09 · 高可用:Sentinel 如何发现故障并完成切主
redis·缓存·sentinel
凌云若寒3 天前
CODESOFT试用流程
linux·运维·网络·数据库·sentinel
多敲代码防脱发10 天前
Alibaba Sentinel(熔断、限流)(国内下载Sentinel)
java·开发语言·sentinel
2601_9621819612 天前
【Spring Cloud Alibaba】Sentinel 服务熔断与流量控制
sentinel
lv__pf14 天前
Sentinel【TL微服务10、11】
java·微服务·sentinel
凤山老林15 天前
高可靠 API 网关架构:Spring Cloud Gateway 集成 Sentinel 实现智能限流、动态路由与安全管控
安全·spring cloud·架构·sentinel
就叫_这个吧16 天前
java springcloud熔断降级组件sentinel基础应用及nacos持久化处理
java·spring cloud·nacos·sentinel
aikopen17 天前
高可用 API 网关限流与微服务过载保护实战:从 Sentinel 动态阈值到 DB 连接池舱壁
数据库·微服务·sentinel