Linux 上 Websphere端口查看

本文介绍如何在Websphere环境中找到用于访问管理控制台的安全端口。通过定位serverindex.xml文件并解析其内容,可以确定https访问所需的端口。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一般来说Websphere部署后,会通过一个URL来访问WAS的管理控制台。这个URL一般为https://{server_ip}:{port}/ibm/console ,其中server_ip为WAS部署的主机IP,port为配置的端口号,然而怎么去查这个端口号呢?
WAS每个节点子目录还包含一个 serverindex.xml 文件,该文件存储这个节点上的服务器所使用的所有端口的定义。将这些信息保存在一个文档中更易于发现一个节点上的服务器之间的端口冲突。
我在服务器上通过find -name 命令来查看这个serverindex.xml文件的位置!
[img]http://dl.iteye.com/upload/attachment/526544/246c5298-b76c-3151-b878-4b3d723752dc.jpg[/img]
其中:./web-g1-pf1/config/cells/web-g1-dmgr-cell/nodes/web-g1-dmgr-node/serverindex.xml这个文件是我想要的文件。
[color=green]下面再通过cat命令来查看一下这个serverindex.xml文件[/color]
[was@HA5-WT01 web_web]$ cat ./web-g1-pf1/config/cells/web-g1-dmgr-cell/nodes/web-g1-dmgr-node/serverindex.xml
<?xml version="1.0" encoding="UTF-8"?>
<serverindex:ServerIndex xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:serverindex="http://www.ibm.com/websphere/appserver/schemas/5.0/serverindex.xmi" xmi:id="ServerIndex_1" hostName="10.96.24.141" endPointRefs="NamedEndPoint_1 NamedEndPoint_2">
<serverEntries xmi:id="ServerEntry_1" serverDisplayName="dmgr" serverName="dmgr" serverType="DEPLOYMENT_MANAGER">
<deployedApplications>isclite.ear/deployments/isclite</deployedApplications>
<specialEndpoints xmi:id="NamedEndPoint_1" endPointName="CELL_DISCOVERY_ADDRESS">
<endPoint xmi:id="EndPoint_1" host="10.96.24.141" port="20008"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_2" endPointName="BOOTSTRAP_ADDRESS">
<endPoint xmi:id="EndPoint_2" host="10.96.24.141" port="20002"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_4" endPointName="SOAP_CONNECTOR_ADDRESS">
<endPoint xmi:id="EndPoint_4" host="10.96.24.141" port="20003"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_5" endPointName="ORB_LISTENER_ADDRESS">
<endPoint xmi:id="EndPoint_5" host="10.96.24.141" port="20007"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_6" endPointName="SAS_SSL_SERVERAUTH_LISTENER_ADDRESS">
<endPoint xmi:id="EndPoint_6" host="10.96.24.141" port="20004"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_7" endPointName="CSIV2_SSL_MUTUALAUTH_LISTENER_ADDRESS">
<endPoint xmi:id="EndPoint_7" host="10.96.24.141" port="20006"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_8" endPointName="CSIV2_SSL_SERVERAUTH_LISTENER_ADDRESS">
<endPoint xmi:id="EndPoint_8" host="10.96.24.141" port="20005"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_9" endPointName="WC_adminhost">
<endPoint xmi:id="EndPoint_9" host="*" port="20000"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_10" endPointName="DCS_UNICAST_ADDRESS">
<endPoint xmi:id="EndPoint_10" host="*" port="20009"/>
</specialEndpoints>
<specialEndpoints xmi:id="NamedEndPoint_11" endPointName="WC_adminhost_secure">
<endPoint xmi:id="EndPoint_11" host="*" port="20001"/>
</specialEndpoints>
</serverEntries>
</serverindex:ServerIndex>
该文件配置多个端口,只有知道每个端口的用途,才能去解决问题!

首先需要了解下面三个端口的用途:
<specialEndpoints xmi:id="NamedEndPoint_1305182306503" endPointName="WC_defaulthost">
<endPoint xmi:id="EndPoint_1305182306503" host="*" port="45000"/>

安全管理控制端口,需要https访问
<specialEndpoints xmi:id="NamedEndPoint_1305182306505" endPointName="WC_adminhost_secure">
<endPoint xmi:id="EndPoint_1305182306505" host="*" port="45003"/>

APP节点会用到的,服务调用时的端口
<specialEndpoints xmi:id="NamedEndPoint_1305182306552" endPointName="ORB_LISTENER_ADDRESS">
<endPoint xmi:id="EndPoint_1305182306552" host="10.87.30.139" port="45009"/>
其中https访问的端口就是本文开始说的访问WAS的管理控制台URL里的端口!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值