zhcn 技术 WordPress 禁用 IBM WebSphere Application Server 安全性

禁用 IBM WebSphere Application Server 安全性

可能会出现您需要禁用安全性才能访问 WAS DMGR 控制台的情况。这通常发生在以下情况: –

  • 忘记了您的凭据?
  • 有人更改了您的密码
  • SSL/安全配置或 security.xml 已损坏

您是否遇到过需要在没有凭据的情况下访问 WAS Deployment Manager 的情况?

有两种方法可以禁用安全性。所以选择你喜欢的一个。

禁用 IBM WebSphere Application Server 安全性
禁用 IBM WebSphere Application Server 安全性

第一步 – 使用 wsadmin

  • 导航到 DMGR 配置文件路径和 bin 文件夹。
  • 运行wsadmin.sh以获取 wsadmin 提示符。
 [root@localhost bin]# ./wsadmin.sh
WASX7209I: Connected to process "dmgr" on node localhostCellManager01 using SOAP connector; The type of process is: DeploymentManager
WASX7029I: For help, enter: "$Help help"
wsadmin> 
  • 运行securityoff命令,如下所示。
 wsadmin> securityoff
LOCAL OS security is off now but you need to restart server1 to make it affected.
wsadmin> 
  • 通过运行 exit 命令退出 wsadmin 实用程序。
  • 重新启动 DMGR 才能生效

现在尝试访问 WAS DMGR 控制台。系统不会提示您输入凭据。

禁用 IBM WebSphere Application Server 安全性
禁用 IBM WebSphere Application Server 安全性

第二步——修改security.xml

创建 security.xml 的备份。它位于 DMGR 配置文件/config/cells/CellName。如果您不确定,可以使用 find 命令搜索 security.xml。

  • 使用vi编辑器修改security.xml
  • 搜索“enabled=true”(如下图)

  • 将 true 更改为 false(如下所示)。

这是禁用的安全配置
这是禁用的安全配置
这是禁用的安全配置

  • 保存文件并重新启动 DMGR。

就是这样。您现在无需密码即可访问 WAS DMGR。

提示:要恢复安全性,您需要执行以下操作…

  • 调用wsadmin.sh
  • 运行securityon命令
  • 重新启动DMGR

我们希望上述任何步骤都能帮助您在访问 WAS 管理控制台时禁用安全性。

想要培养您的云计算技能吗?请查看这份初学者指南。

禁用 IBM WebSphere Application Server 安全性
禁用 IBM WebSphere Application Server 安全性

可能会出现您需要禁用安全性才能访问 WAS DMGR 控制台的情况。这通常发生在以下情况: –

  • 忘记了您的凭据?
  • 有人更改了您的密码
  • SSL/安全配置或 security.xml 已损坏

您是否遇到过需要在没有凭据的情况下访问 WAS Deployment Manager 的情况?

有两种方法可以禁用安全性。所以选择你喜欢的一个。

禁用 IBM WebSphere Application Server 安全性
禁用 IBM WebSphere Application Server 安全性

第一步 – 使用 wsadmin

  • 导航到 DMGR 配置文件路径和 bin 文件夹。
  • 运行wsadmin.sh以获取 wsadmin 提示符。
 [root@localhost bin]# ./wsadmin.sh
WASX7209I: Connected to process "dmgr" on node localhostCellManager01 using SOAP connector; The type of process is: DeploymentManager
WASX7029I: For help, enter: "$Help help"
wsadmin> 
  • 运行securityoff命令,如下所示。
 wsadmin> securityoff
LOCAL OS security is off now but you need to restart server1 to make it affected.
wsadmin> 
  • 通过运行 exit 命令退出 wsadmin 实用程序。
  • 重新启动 DMGR 才能生效

现在尝试访问 WAS DMGR 控制台。系统不会提示您输入凭据。

禁用 IBM WebSphere Application Server 安全性
禁用 IBM WebSphere Application Server 安全性

第二步——修改security.xml

创建 security.xml 的备份。它位于 DMGR 配置文件/config/cells/CellName。如果您不确定,可以使用 find 命令搜索 security.xml。

  • 使用vi编辑器修改security.xml
  • 搜索“enabled=true”(如下图)

  • 将 true 更改为 false(如下所示)。

这是禁用的安全配置
这是禁用的安全配置
这是禁用的安全配置

  • 保存文件并重新启动 DMGR。

就是这样。您现在无需密码即可访问 WAS DMGR。

提示:要恢复安全性,您需要执行以下操作…

  • 调用wsadmin.sh
  • 运行securityon命令
  • 重新启动DMGR

我们希望上述任何步骤都能帮助您在访问 WAS 管理控制台时禁用安全性。

想要培养您的云计算技能吗?请查看这份初学者指南。

禁用 IBM WebSphere Application Server 安全性
禁用 IBM WebSphere Application Server 安全性