_狐狸狐狸渔丶 2021-08-23 15:55 采纳率: 100%
浏览 1028
已结题

通过IDEA的编译配置 Shell Script 启动sentinel 一直提示 "错误: 找不到或无法加载主类 .port=8180""

通过IDEA的编译配置 Shell Script 启动sentinel 一直提示 "错误: 找不到或无法加载主类 .port=8180""
-Dserver.port=8180
-Dcsp.sentinel.dashboard.server=localhost:8180
-Dproject.name=sentinel-dashboard
-jar
G:/TOOLS/sentinell/sentinel-dashboard-1.8.1.jar

环境变量都配置正常
img

  • 写回答

4条回答 默认 最新

  • 37℃❀ 2021-09-22 09:16
    关注

    '-Dserver.port=8180'
    '-Dcsp.sentinel.dashboard.server=localhost:8180'
    '-Dproject.name=sentinel-dashboard'
    '-jar'
    'sentinel jar包路径'
    这样一段加一对单引号就可以了

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

问题事件

  • 系统已结题 12月4日
  • 已采纳回答 11月26日
  • 创建了问题 8月23日