假设无法访问生产环境,也无法访问管理控制台,我必须找出 Websphere 使用哪个端口来监听 REST Controller 的新 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 服务器绑定(bind)到哪个端口?或者也许使用了所有提到的端口?
Websphere 版本 8.5.5
最佳答案
检查日志中是否有以下消息:
...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 端口,WCInboundDefaultSecure
是 https 端口。
关于java - 如何从Websphere的标准输出日志中找出Web服务器模块使用了哪个端口?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51947522/