Glassfish 3.1.1 - How to enable secure admin for different domains?

后端 未结 5 1032
别跟我提以往
别跟我提以往 2020-12-13 02:25

I have a glassfish server runing. it has 3 different domains - d1,d2, and d3. now when I try to run asadmin enable-secure-admin command, how to i specify which

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-13 02:43

    Before being able to enable Security, You might be prompted with a message saying your admin password is empty and cannot enable security.

    To solve the problem:

    Change the password of admin this way: asadmin --host localhost --port 4848 change-admin-password

    It will prompt you with user, type "admin", admin password, retype admin password

    Once this is done, enable the security with the following command:

    asadmin --host localhost --port 4848 enable-secure-admin

    This should fix the problem.

提交回复
热议问题