首页 > 解决方案 > 如何从 Websphere 的标准输出日志中找出 Web 服务器模块使用的端口?

问题描述

假设无法访问生产环境并且无法访问管理控制台,我必须找出 Websphere 使用哪个端口来侦听 REST 控制器的新 http 请求。我发现的唯一条目如下所示:

webcontainer  I com.ibm.ws.webcontainer.VirtualHostImpl addWebApplication SRVE0250I: Web Module WebSphere ASYNC Response Servlet Application has been bound to default_host[*:8012,*:80,*:8013,*:8014,*:8015,*:443,*:9080,*:9443,*:5060,*:5061,*:8097,*:8019,*:8085].

标准输出日志中是否有任何其他信息明确说明 Web 服务器绑定到哪个端口?或者也许所有提到的端口都被使用了?

Websphere 版本 8.5.5

标签: javawebsphereapplication-server

解决方案


检查日志以获取以下消息:

...TCPChannel    I   TCPC0001I: TCP Channel TCP_2 is listening on host *  (IPv6) port 9080.
...WSChannelFram A   CHFW0019I: The Transport Channel Service has started chain WCInboundDefault.
...TCPChannel    I   TCPC0001I: TCP Channel TCP_4 is listening on host *  (IPv6) port 9443.
...WSChannelFram A   CHFW0019I: The Transport Channel Service has started chain WCInboundDefaultSecure.

WCInboundDefault服务器的http端口在哪里, WCInboundDefaultSecurehttps端口在哪里。


推荐阅读