必须启用 Secure Admin 才能远程访问 DAS - 访问 Glassfish 配置页面

Secure Admin must be enabled to access the DAS remotely - access Glassfish config page

我的环境是Ubuntu18.10。这是一个新安装,在 Glassfish 端口上没有防火墙或 运行 进程。

我在服务器上安装了 Glassfish 5。 Java 8,因为 Glassfish 不支持任何更新版本。当我尝试访问我的配置页面时,它当然给了我一个 "Secure Admin must be enabled to access the DAS remotely".

然后我继续使用以下命令更改我的管理员密码:

./asadmin start-domain

./asadmin change-admin-password

- 我输入了密码并重新输入了 =>

"Command change-admin-password executed successfully."

./asadmin enable-secure-admin

=>

"You must restart all running servers for the change in secure admin to take effect. Command enable-secure-admin executed successfully."

./asadmin stop-domain
./asadmin start-domain

就是这样,它应该可以工作。我的服务器是 运行ning,我可以访问我的主 Glassfish 页面,但是当我尝试访问配置页面时,它说它没有找到任何具有该端口的页面。

如有任何帮助,我们将不胜感激。我正在为这个简单的安装而苦苦挣扎。

根据您在评论中发布的异常,您遇到了 GlassFish 5.0 和高于 8u161 的 Java 版本的已知问题。

来自 :

The solution to this is to downgrade your version of Java to a version below 8u161.

but, if you do not like the idea of downgrading Java, you could either use the latest GlassFish 5.0.1 nightly or switch to Payara 5, which is derived from GlassFish and should work the same in most cases.

Edit: Note that, after making one of these changes, you will still need to add a security exception so that your browser accepts the self-signed certificate, but the page should work with no further issues; I verified this myself with Java 8u144