Java netbeans 中的默认 glassfish 4.0 密码

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20430702/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 01:52:09  来源:igfitidea点击:

Default glassfish 4.0 password in netbeans

javanetbeansglassfish-4

提问by Wiston Coronell

Well, more than a question this is an answer, I was trying to see for Glassfish 4.0 default admin password to access its console but I didn't find any satisfactory answer, some suggested to change admin-keyfile on glasssfish folder which can also work... anyhow... here it is how I did it...

好吧,这不仅仅是一个问题,这是一个答案,我试图查看 Glassfish 4.0 默认管理员密码以访问其控制台,但我没有找到任何令人满意的答案,有人建议更改 glasssfish 文件夹上的 admin-keyfile 也可以工作......无论如何......我就是这样做的......

well, it turns out that it HAS a default password in the most recent version of netbeans, I discover that it is self-generated and it's not generic, to see your password go to services tab and then right click on your glassfish 4.0 server, then choose properties and then you'll see your password stored there on the common tab, click on show and you'll have your password...

好吧,事实证明它在最新版本的 netbeans 中有一个默认密码,我发现它是自行生成的,它不是通用的,要查看您的密码,请转到服务选项卡,然后右键单击您的 glassfish 4.0 服务器,然后选择属性,然后您将看到您的密码存储在公共选项卡上,单击显示,您将获得密码...

hope to help you guys!

希望能帮到你们!

回答by ederpsampaio

I faced the same problem. And I solved it using a small trick. I removed the server installed with NetBeans from the interface and the added another. When you do this you may create a personal domain. And in this personal domain the anonymouns login is already enabled, with no password at all.

我遇到了同样的问题。我用一个小技巧解决了它。我从界面中删除了安装了 NetBeans 的服务器,并添加了另一个。当您这样做时,您可以创建一个个人域。在这个个人域中,匿名登录已经启用,根本没有密码。

I know this is not a good solution, but it is a solution nonetheless.

我知道这不是一个好的解决方案,但它仍然是一个解决方案。

Hope it helps!

希望能帮助到你!

PS: At least in my NetBeans 7.4 for Linux, sometimes when I leave NetBeans the servers won't go down. Then you have to kill their processes, or else you won't manage to install another due to port conflicts. It's a tricky thing to find the process of the server. When you use "ps -A" the name of the process is only "java", with no clue it is the server.

PS:至少在我的 NetBeans 7.4 for Linux 中,有时当我离开 NetBeans 时,服务器不会停机。然后您必须终止他们的进程,否则由于端口冲突,您将无法安装另一个进程。找到服务器的进程是一件很棘手的事情。当您使用“ps -A”时,进程的名称仅为“java”,不知道它是服务器。

回答by gaurav0918

[root@ip-172-31-20-218 bin]# ./asadmin change-admin-password
Enter admin user name [default: admin]>admin
Enter the admin password>**[Note: as default password for admin in Glassfish 4.0 is blank, you need to press enter key only. Do not type any thing.]**
Enter the new admin password>
Enter the new admin password again>
Command change-admin-password executed successfully.

回答by Anton Astafiev

As I know default glassfish password is 'changeit' for master admin and is empty for domain admin (with login admin by default). If you mean this password try this.

据我所知,默认的 glassfish 密码对于主管理员来说是“changeit”,对于域管理员来说是空的(默认情况下是登录管理员)。如果你的意思是这个密码试试这个。

回答by johnmin

I have used eclipse. I got the same issue I resolved it by doing the following. For a fresh download of glassfish4.zip

我用过eclipse。我遇到了同样的问题,我通过执行以下操作解决了它。重新下载 glassfish4.zip

  1. Go to Glassfish_home/bin
  2. Run asadminstart-domain
  3. Open up http://localhost:4848
  4. Click on Domain
  5. Click on Administration Password
  6. Give the new password and confirm
  7. In the command prompt Run asaadmin stop-domain
  8. Open the server in eclipse and give the username and password and start the server.
  1. 转到 Glassfish_home/bin
  2. 运行asadmin起始域
  3. 打开http://localhost:4848
  4. 点击域
  5. 点击管理密码
  6. 输入新密码并确认
  7. 在命令提示符下运行 asaadmin stop-domain
  8. 在eclipse中打开服务器并提供用户名和密码并启动服务器。