使用wlst关闭和开启 weblogic console

Disabling and Enabling Admin Console

Many at times for most of our administration work including the changes (deployments, start/stop of servers, etc) or configurations (JMS, creation/deletion/editing of our servers, etc) we use our weblogic admin console.

But, for security reasons some of the banking companies for its core banking applications prefer to disable the admin console in its banking applications.

This short and sweet article mainly targets to present you on how to enable and disable your admin console:

Disabling your Admin Console:

We can disable our weblogic admin console in two different ways

1) Admin console

2) Weblogic Scripting Tool

From Admin console:-

To disable access to the Administration Console:

  1. After you log in to admin console click Lock & Edit.

  2. In the left pane of the Console, under Domain Structure, select the domain name.

  3. Select Configuration > General, and click Advanced at the bottom of the page.

  4. Deselect Console Enabled.

  5. Click Save.

  6. To activate these changes, click Activate Changes.

From WLST:-

connect(“weblogic“,”weblogic“,”t3://localhost:7001“)

edit()

startEdit()

cmo.setConsoleEnabled(false)

save()

activate()

disconnect()

exit()

Enabling the Admin Console:

After we disable the admin console we can enable it again by using WLST.

Following are the steps on the same:

connect(“weblogic“,”weblogic“,”t3://localhost:7001“)

edit()

startEdit()

cmo.setConsoleEnabled(true)

save()

activate()

disconnect()

exit()

Note: Here,

1) weblogicandweblogicare the user id and password of admin console.

2) t3://localhost:7001 is the admin console URL

3) After we enable/disable the admin console RESTART your admin server


你可能感兴趣的:(weblogic,console,关闭,开启,wlst)