我面临与此问题中提到的相同的问题
HTTP Status 500 - Internal Server Error on Glassfish
我这样做
root@user1:~# asadmin enable-secure-admin
No command 'asadmin' found, did you mean:
Command 'amadmin' from package 'amanda-server' (universe)
Command 'acsadmin' from package 'ion' (universe)
asadmin: command not found
我有Linux 16.04和
尝试了这个,我收到了另一封电子邮件。如果你能对此发表评论我很感激
glassfish4/bin/asadmin enable-secure-admin
remote failure: At least one admin user has an empty password, which secure admin does not permit. Use the change-admin-password command or the admin console to create non-empty passwords for admin accounts.
Command enable-secure-admin failed.
答案 0 :(得分:1)
以这种方式更改admin的密码:
asadmin --host localhost --port 4848 change-admin-password
它会提示您输入用户,输入“admin”,管理员密码,重新输入管理员密码
完成此操作后,使用以下命令启用安全性:
asadmin --host localhost --port 4848 enable-secure-admin
这应解决问题。