java - 如何从Websphere的标准输出日志中找出Web服务器模块使用了哪个端口?

标签 java websphere application-server

假设无法访问生产环境,也无法访问管理控制台,我必须找出 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/

相关文章:

java - 需要帮助发现我的代码中有关通过缓冲区读取矩阵的错误

binding - 不同 WebSphere 服务器上的 EJB JNDI 查找

jakarta-ee - Web服务器、Web容器和应用服务器之间的区别

linux - Hadoop 自动化与 Automic (UC4)

java - 将可迭代作为方法参数传递?

java - JMS 在 Java 中如何工作?

java - WSJDBCConnection 不包装 oracle.jdbc.OracleConnection 类型的对象

java - JMS - 将监听器添加到 MessageConsumer 时出错

websphere - 将应用程序移动到 Websphere 集群

java - 本类为两种不同产品 flavor