在 Eclipse 中启用 WildFly 12 运行 上的管理控制台
Enable Admin Console on WildFly 12 running in Eclipse
我今天将 WildFly 服务器安装到 Eclipse 中,并且我能够 运行 Web 应用程序。我希望能够登录到管理控制台。不过我还没有启用它,所以我看到了这个:
Your WildFly Application Server is running.
However you have not yet added any users to be able to access the admin console.
To add a new user execute the add-user.bat script within the bin folder of your WildFly installation and enter the requested information.
好吧,我 运行 添加-user.bat 脚本在我的 wildfly 安装的 bin 目录中。它似乎 运行 没有任何问题。我仍然遇到同样的错误。
我猜 Eclipse 复制了我的 wildfly 安装并将其放置在某个隐藏目录中。虽然不知道那是哪里。有什么想法吗?
Section 3.3 of the Wildfly 12 Admin Guide 描述了添加用户以便能够访问 Wildfly 的管理控制台的过程:
To manipulate the files and add users we provide a utility add-user.sh
and add-user.bat to add the users and generate the hashes, to add a
user you should execute the script and follow the guided process.
The full details of the add-user utility are described later but
for the purpose of accessing the management interface you need to
enter the following values: -
Type of user - This will be a 'Management User' to selection option a.
Realm - This MUST match the realm name used in the configuration so
unless you have changed the configuration to use a different realm
name leave this set as 'ManagementRealm'.
Username - The username of the user you are adding.
Password - The users password.
Provided the validation passes you will then be asked to confirm you
want to add the user and the properties files will be updated.
For the final question, as this is a user that is going to be
accessing the admin console just answer 'n' - this option will be
described later for adding slave host controllers that authenticate
against a master domain controller but that is a later topic.
Updates to the properties file are picked up in real time so either
click 'Try Again' on the error page that was displayed in the browser
or navigate to the console again and you should then be prompted to
enter the username and password to connect to the server.
运行 add-user 实用程序时有几个潜在的陷阱:
- 对于类型的用户,您必须select选项a)(管理用户)。
- 您必须使用领域 ManagementRealm,但如果要添加的用户类型是 Management User.[=41,这应该会自动发生=]
但是与其诊断出了什么问题,不如按照上面显示的文档中给出的说明尝试添加另一个用户更容易。作为参考,这是我所做的屏幕截图,其中黄色水平条是我从键盘提交内容的点:
在 运行 add-user.bat 之后,我能够登录到 管理控制台(http://localhost:9990) 使用我刚创建的用户,不需要重新启动服务器。我的环境是 Windows 10.
上的 Eclipse Photon
如果仍有问题,请打开文件mgmt-users.properties查看您的用户是否添加成功。在我的例子中,为新用户添加了一行,如下所示:
skomisa=82fa5e2f2de46d60adf210bb95d461f3
我今天将 WildFly 服务器安装到 Eclipse 中,并且我能够 运行 Web 应用程序。我希望能够登录到管理控制台。不过我还没有启用它,所以我看到了这个:
Your WildFly Application Server is running.
However you have not yet added any users to be able to access the admin console.
To add a new user execute the add-user.bat script within the bin folder of your WildFly installation and enter the requested information.
好吧,我 运行 添加-user.bat 脚本在我的 wildfly 安装的 bin 目录中。它似乎 运行 没有任何问题。我仍然遇到同样的错误。
我猜 Eclipse 复制了我的 wildfly 安装并将其放置在某个隐藏目录中。虽然不知道那是哪里。有什么想法吗?
Section 3.3 of the Wildfly 12 Admin Guide 描述了添加用户以便能够访问 Wildfly 的管理控制台的过程:
To manipulate the files and add users we provide a utility add-user.sh and add-user.bat to add the users and generate the hashes, to add a user you should execute the script and follow the guided process. The full details of the add-user utility are described later but for the purpose of accessing the management interface you need to enter the following values: -
Type of user - This will be a 'Management User' to selection option a.
Realm - This MUST match the realm name used in the configuration so unless you have changed the configuration to use a different realm name leave this set as 'ManagementRealm'.
Username - The username of the user you are adding.
Password - The users password.
Provided the validation passes you will then be asked to confirm you want to add the user and the properties files will be updated.
For the final question, as this is a user that is going to be accessing the admin console just answer 'n' - this option will be described later for adding slave host controllers that authenticate against a master domain controller but that is a later topic.
Updates to the properties file are picked up in real time so either click 'Try Again' on the error page that was displayed in the browser or navigate to the console again and you should then be prompted to enter the username and password to connect to the server.
运行 add-user 实用程序时有几个潜在的陷阱:
- 对于类型的用户,您必须select选项a)(管理用户)。
- 您必须使用领域 ManagementRealm,但如果要添加的用户类型是 Management User.[=41,这应该会自动发生=]
但是与其诊断出了什么问题,不如按照上面显示的文档中给出的说明尝试添加另一个用户更容易。作为参考,这是我所做的屏幕截图,其中黄色水平条是我从键盘提交内容的点:
在 运行 add-user.bat 之后,我能够登录到 管理控制台(http://localhost:9990) 使用我刚创建的用户,不需要重新启动服务器。我的环境是 Windows 10.
上的 Eclipse Photon如果仍有问题,请打开文件mgmt-users.properties查看您的用户是否添加成功。在我的例子中,为新用户添加了一行,如下所示:
skomisa=82fa5e2f2de46d60adf210bb95d461f3