简体   繁体   English

如何从Websphere的标准输出日志中找出用于Web服务器模块的端口?

[英]How to find out which port is used for web server module from Websphere's standard output log?

Assuming no access to production environment and no access to admin console I must find out which port is used by Websphere to listen for new http requests for REST controllers. 假设没有访问生产环境,也没有访问管理控制台,那么我必须找出Websphere使用哪个端口来侦听REST控制器的新http请求。 The only entry i found is something like below: 我发现的唯一条目如下所示:

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].

Is there any other information in the standard output log that definitely state which port is web server bound to? 标准输出日志中是否还有其他任何信息可以明确说明Web服务器绑定到哪个端口? Or maybe all mentioned ports are used? 或者也许所有提到的端口都被使用了?

Websphere version 8.5.5 Websphere版本8.5.5

Those are virtual host/port combinations, the listening ports on any particular server will be a subset. 这些是虚拟主机/端口的组合,任何特定服务器上的侦听端口都是其中的一个子集。

Looking for the message "TCPC0001I:" will at least show you actual listening ports. 查找消息“ TCPC0001I:”将至少显示实际的监听端口。 If you find an intersection with the message in your question, you have likely found the right host/port to connect to at least from the local systems perspective. 如果您在问题中发现与该消息的交叉点,则可能至少从本地系统的角度找到了正确的主机/端口以进行连接。

Usually the port will be quite predictable -- 9080. But colocated appservers or lots of profiles being created will result in the default web container listening port being incremented. 通常,该端口是非常可预测的-9080。但是,位于同一位置的应用服务器或大量配置文件将导致默认的Web容器侦听端口增加。

Check the log for the following messages: 检查日志中是否包含以下消息:

...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.

Where WCInboundDefault is http port of the server and WCInboundDefaultSecure is https port. 其中WCInboundDefault是服务器的http端口,而WCInboundDefaultSecure是https端口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM