修改Websphere应用程序服务器管理控制台URL



我们的一个应用程序团队已经完成了WAS服务器的基本安装。安装完成后,他需要两件事。

  1. WebSphere管理员能够通过URL访问WebSphere管理控制台
  2. 能够访问WAS门户的用户

要连接到URL,他们首先连接到VPN,然后直接从基本机器使用浏览器。默认情况下,我们看到这些url。

管理员URL:https://hostnane.ibm.com:9043/ibm/console/logon.jsp用户URLhttps://hostname.ibm.com(这是目前的假设(

应用程序团队希望将ibm.com转换为mycompany.com.

有人能建议我们如何改变吗?

请逐步执行下一步操作:

1.如何更改WebSphere Application Server上的主机名

如果要移动IBM WebSphere Application Server配置或迁移环境,则可能需要更改主机名或将配置文件从一台机器迁移到另一台机器。

例如,旧的主机名是example.com,我们想更改为was-tpx04.hq.com

如果服务器的主机名或其端口不正确,则在尝试停止服务器时可能会遇到错误等问题。

首先,使用wsadmin.sh脚本工具和命令行工具更正应用程序服务器的主机名。

was-tpx04:/u01/IBM/WebSphere/AppServer/bin # ./wsadmin.sh -conntype NONE -lang jython

WASX7357I:根据请求,这个脚本客户端没有连接到任何服务器进程。某些配置和应用程序操作将在本地模式下可用。WASX7031I:要获得帮助,请输入:";print Help.Help((">

wsadmin>AdminConfig.list('ServerIndex')
'(cells/exampleNode01Cell/nodes/exampleNode01|serverindex.xml#ServerIndex_1)'

wsadmin>AdminConfig.modify('(cells/exampleNode01Cell/nodes/exampleNode01|serverindex.xml#ServerIndex_1)',  "[[hostName was-tpx04.hq.com]]")
''

wsadmin>AdminConfig.show('(cells/exampleNode01Cell/nodes/exampleNode01|serverindex.xml#ServerIndex_1)',  'hostName')
'[hostName was-tpx04.hq.com]'

wsadmin>AdminConfig.save()
''

wsadmin>exit

was-tpx04:/u01/IBM/WebSphere/AppServer/bin # ./stopServer.sh server1 -profileName AppSrv01

ADMU0116I:正在文件中记录刀具信息/u01/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/server1/stopServer.logADMU0128I:使用AppSrv01配置文件启动工具ADMU3100I:正在读取服务器的配置:server1ADMU3201I:已发出服务器停止请求。正在等待停止状态。ADMU4000I:服务器服务器1停止已完成。

was-tpx04:/u01/IBM/WebSphere/AppServer/bin # ./startServer.sh server1 -profileName AppSrv01

ADMU0116I:正在文件中记录刀具信息/u01/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/server1/startServer.logADMU0128I:使用AppSrv01配置文件启动工具ADMU3100I:正在读取服务器的配置:server1ADMU3200I:服务器已启动。正在等待初始化状态。ADMU3000I:服务器server1为电子商务开放;进程id为52604was-tpx04:/u01/IBM/WebSphere/AppServer/bin#

现在,主机名如下所示:

2.其次,您需要更正应用程序服务器打开

对于应用服务器,select Servers > Application servers > application server > Ports.

选择主机名需要更改的端口。

更改主机字段中的主机名称;单击"确定"。将主机名更改为was-tpx04.hq.com

继续选择端口并更改主机名,直到更正服务器端口的每个主机名。

保存对主配置的更改。

重新启动服务器。

最新更新