activemq-artemis - 在 ActiveMQ Artemis 中创建用户时出错
问题描述
这看起来应该是这里描述的一个简单的命令运行,它显示了一个简单的示例:
./artemis user add --username guest --password guest --role admin
但它给出了一个错误:
Found unexpected parameters: [--username, guest]
我在这里想念什么?我在代理目录 (/var/lib/broker1/bin)
我在这里有什么问题吗?
解决方案
参数名称--username
无效。你应该--user
改用。
值得您通过运行help
命令查看有效参数,例如:
./artemis help user add
这是该命令的输出:
NAME
artemis user add - Add a new user
SYNOPSIS
artemis user add [--entry <entry>] [--password <password>] [--plaintext]
[--role <role>] [--silent] [--user <username>] [--verbose]
OPTIONS
--entry <entry>
The appConfigurationEntry (default: activemq)
--password <password>
the password (Default: input)
--plaintext
using plaintext (Default false)
--role <role>
user's role(s), comma separated
--silent
It will disable all the inputs, and it would make a best guess for
any required input
--user <username>
The user name (Default: input)
--verbose
Adds more information on the execution
我已提交更改以修复文档。
推荐阅读
- html - HTML 导航栏菜单图标在较小的屏幕上下降 1 行
- c++ - AVL 删除功能不起作用(分段错误)
- python - Error "'Timestamp' object has no attribute 'translate'"
- javascript - 添加客户端搜索条件 Odoo13 的 POS
- javascript - 如何在 *Windows 10* 的 Jest 配置中设置时区?
- oauth-2.0 - 如何使用 oauth 从任何 API 生成客户端 ID 和客户端密码
- c - system() 如何影响 x64 linux 中的堆栈?
- c++ - 我收到一个错误,无法将 int* 转换为 int,但我无法弄清楚究竟是什么原因造成的
- tensorflow - 如何加载 export_inference_graph.py 保存的训练模型?
- aws-glue - 无法从 AWS Glue 启动现有 SageMaker Notebook