开发者社区 问答 正文

seata当使用-DseataConfigEnv参数时,系统提示找不到

执行脚本报错:

sh seata-server.sh -DseataConfigEnv=prod -p 8091 -h 172.17.55.220 -m db
Option error Was passed main parameter '-DseataConfigEnv=prod' but no main parameter was defined in your arg class
Usage: sh seata-server.sh(for linux and mac) or cmd seata-server.bat(for
      windows) [options]
  Options:
    --host, -h
      The host to bind.
      Default: 0.0.0.0
    --port, -p
      The port to listen.
      Default: 8091
    --storeMode, -m
      log store mode : file、db
      Default: file
    --help

展开
收起
一人吃饱,全家不饿 2021-02-02 10:46:55 1019 分享 版权
来自: 阿里开源
1 条回答
写回答
取消 提交回答
  • 可以参考这里:https://github.com/seata/seata/wiki/Multi-configuration-Isolation 在这种情况下,file-prod.conf和Registry-prod-conf都需要

    2021-02-02 10:47:02
    赞同 展开评论
问答分类:
问答标签:
问答地址: