java - 如何从 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
解决方案
检查日志以获取以下消息:
...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端口在哪里。
推荐阅读
- kubernetes - 如何使用 ingress 在 kubernetes 中显示 speedtester
- excel - 如何让 VBA 代码重复输入
- c++ - 为什么 putc() 不能在 C++ 中实现为宏?(或者可以吗?)
- javascript - 创建 React App 构建不会渲染所有元素
- python - Keras TensorFlow 多个错误
- php - 如何输出我在数组中找到元素的索引
- excel - 如何限制用户仅在 Excel 用户表单中具有相同名称模式的所有文本框/文本框中输入数字
- installation - spyder 上没有名为“sklearn”的模块消息
- c++ - 有没有办法在 C++ 中“翻译”类型?
- amazon-s3 - 如何使用 AWS Java SDK 2 将文件上传到 AWS 存储桶