ubuntu - Camunda - 禁用每次启动都创建演示用户?
问题描述
我在Ubuntu 18.04 EC2机器上部署了Camunda 7.15.0(下载了 .zip,解压缩,然后运行 .sh 文件)。对于 Camunda 仪表板的初始登录,我使用了“演示”用户及其凭据。由于“演示”用户具有管理员权限并且其凭据是公开可用的,因此我使用自己的凭据创建了另一个用户并删除了“演示”用户。请注意,我已将 Camunda.sh 添加为 Systemctl 服务,因此每当服务器重新启动时,Camunda 服务也会启动。
但是,当我重新启动 Camunda EC2 服务器时(出于我自己的原因),而 Camunda 启动时没有任何问题,我可以看到“演示”用户已再次创建。有没有办法阻止这种情况发生(通过仪表板或通过修改 EC2 中的 Camunda 文件)?
解决方案
A) 如果您使用的是Tomcat 发行版,请检查您的发行版是否在文件夹中包含示例 Web 应用程序camunda-invoice\camunda-bpm-.....\server\apache-tomcat-9.....\webapps
此示例项目包含org.camunda.bpm.example.invoice.DemoDataGenerator,它在此处创建用户: https ://github.com/camunda/camunda-bpm-platform/blob/7c5bf37307d3eeac3aee5724b6e4669a9992eaba/examples/invoice/src/main/ java/org/camunda/bpm/example/invoice/DemoDataGenerator.java#L78
如果您不想要该示例,则可以完全删除文件夹 camunda-invoice 。
如果您想使用预构建的发行版,那么我建议您也看看较新的 RUN 发行版: https ://docs.camunda.org/manual/7.15/user-guide/camunda-bpm-run/ 可在 CAMUNDA 网站上作为标准下载: https ://camunda.com/download/
B)如果您使用的是RUN 发行版,则删除 admin-user 部分:
camunda.bpm:
#admin-user:
#id: demo
#password: demo
run:
# https://docs.camunda.org/manual/latest/user-guide/camunda-bpm-run/#cross-origin-resource-sharing
cors:
enabled: true
allowed-origins: "*"
来自配置文件camunda-bpm-run-7.....\configuration\default.yml,第 5-8 行。
如果您正在准备生产使用,您可能还需要考虑使用 production.yml 配置文件。请在此处查看涵盖各种配置选项的相关文档: https ://docs.camunda.org/manual/latest/user-guide/camunda-bpm-run/
推荐阅读
- html - CSS flexbox 完全折叠所有空子
- c - 我该怎么做,c 中的命令行参数
- python - 用特定索引替换另一个列表中的数据框值
- javascript - 带有画布的Javascript循环图像
- redux - 如何在 React 类组件中使用 Redux 与多个 React 提供程序连接?
- forms - 在 Delphi Form Designer 中实时查看表单?
- performance - 建造时间需要永远
- python - 如何在 numpy.matrix 中添加 numpy.array?
- excel - 如何使用 ListIndex 查找 Combobox 值的行?
- c# - AutoMapper ITypeConverter 问题