# sentinel-dashboard
# 安装
# 下载
wget https://github.com/alibaba/Sentinel/releases/download/1.7.1/sentinel-dashboard-1.7.1.jar
# 创建软件目录
mkdir -p /opt/software/sentinel-dashboard
# 拷贝软件到制定目录
cp sentinel-dashboard-1.7.1.jar /opt/software/sentinel-dashboard
# 新建shell启动脚本
vim /opt/software/sentinel-dashboard/startup.sh
#!/bin/bash
java -Dserver.port=8020 -Dcsp.sentinel.dashboard.server=localhost:8020 -Dproject.name=sentinel-dashboard -Dcsp.sentinel.api.port=8021 -jar /opt/software/sentinel-dashboard/sentinel-dashboard-1.7.1.jar
# 给脚本赋可执行权限
chmod 777 /opt/software/sentinel-dashboard/startup.sh
# 注册服务脚本
vim /lib/systemd/system/sentinel-dashboard.service
# 脚本内容
[Unit]
Description=sentinel-dashboard
After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
Type=simple
ExecStart=/opt/software/sentinel-dashboard/startup.sh
Restart=always
PrivateTmp=true
[Install]
WantedBy=multi-user.target
# 设置开机启动并启动nacos
# 重新加载service的配置
systemctl daemon-reload
# 设置开机启动
systemctl enable sentinel-dashboard.service
# 启动sentinel
systemctl start sentinel-dashboard.service