Sentinel安裝部署文檔


1、環境准備

(1)java環境(該環境為安裝測試環境)

java -version

   如果沒有安裝java環境需提前安裝

(2)nacos環境(該環境為安裝測試環境,以下配置需根據實際情況修改)

  nacos地址:192.168.59.167:8848

  Data Id: sentinel-appkey-num.yml

  Group: SENTINEL_GROUP

  配置內容:(注意: 后面有空格)

  datashare-sentinel:

  datashare-demotion:

2、sentinel配置文件

(1)application.properties

  文件位置

   修改nacos地址配置(根據實際配置)

   sentinel默認端口

   sentinel用戶密碼

  sentinel/fdmp!@#

(2)可以通過WinRar壓縮工具打開sentinel-dashboard.jar

 

   刪除application.properties文件

   將已改好的application.properties文件選中拖至打開的jar包保存

3、啟動sentinel

(1)將sentinel-dashboard.jar上傳至服務器/data/sentinel

mkdir /data/sentinel

(2)啟動sentinel

cd /data/sentinel

 nohup java -jar fdmp-api-gateway-dev.jar 1>sentinel.log 2>sentinel.err & echo $! >sentinel.pid

 

  日志輸出:sentinel.log

  錯誤日志輸出:sentinel.err

  后台進程:sentinel.pid

(1)訪問sentinel ip:8849

  用戶/密碼:sentinel/fdmp!@#

 

 

4、停止sentinel

查看后台進程

ps -ef | grep sentinel-dashboard.jar

  或者通過sentinel.pid查看進程

  cd /data/sentinel

  cat sentinel.pid

  停止sentinel

  kill -9 19500

  再次查看后台進程

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM