在 ActiveMQ Artemis 中创建用户时出错
Error when creating a user in ActiveMQ Artemis
这看起来应该是一个简单的命令 运行 描述 here 显示了一个简单的示例:
./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
我已 committed a change 修复文档。
这看起来应该是一个简单的命令 运行 描述 here 显示了一个简单的示例:
./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
我已 committed a change 修复文档。