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

后端 未结 5 1041
别跟我提以往
别跟我提以往 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:27

    asadmin --host www.yourdomain.com --port 4848 enable-secure-admin

    Then stop/start glassfish immediately after enabling secure admin.

    In case your private Glassfish runs on shared server you will need to use your custom port (assume 15123 for the example) in asadmin command. Check Java Control Panel for your Glassfish console port. Use the port with your asadmin commands. The below was tested with Glassfish 3.1.2 and 4.0.

    [~]# asadmin --port 4848 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.

    Set the password as prompted

    [~]# asadmin --port 4848 change-admin-password Enter admin user name

    [default: admin]> Enter admin password> Enter new admin password>

    secret Enter new admin password again> secret Command

    change-admin-password executed successfully.

    Now retry enable-secure-admin

    asadmin --port 4848 enable-secure-admin

    Enter admin user name> admin

    Enter admin password for user "admin"> secret

    You must restart all

    running servers for the change in secure admin to take effect. Command

    enable-secure-admin executed successfully.

    More information Glassfish: Secure Admin Must Be Enabled To Access The DAS Remotely

提交回复
热议问题