WSO2 Integration Studio中HTTPS Listener异常:端口9164被占用求助
解决WSO2 Composite Exporter端口9164占用问题
问题描述
FATAL {PassThroughListeningIOReactorManager} - Exception encountered in the HTTPS Listener. No more connections will be accepted by this transport org.apache.http.nio.reactor.IOReactorException: Failure binding socket to address 0.0.0.0/0.0.0.0:9164
Caused by: java.net.BindException: Address already in use: bind
解决方案
1. 终止占用端口的进程
- Windows系统:
- 打开命令提示符,执行:
netstat -ano | findstr :9164 - 找到输出中最后一列的PID(进程ID)
- 打开任务管理器,找到对应PID的进程并结束它
- 打开命令提示符,执行:
- Linux/macOS系统:
- 打开终端,执行:
lsof -i :9164或netstat -tulpn | grep 9164 - 获取占用端口的进程PID
- 执行:
kill -9 <PID>强制终止进程
- 打开终端,执行:
2. 修改Composite Exporter端口配置
找到Composite Exporter的deployment.toml配置文件,修改HTTPS监听端口:
- 定位到类似如下配置项:
[transport.https.properties] port = 9164 - 将
9164替换为未被占用的端口(比如9165) - 保存配置文件,重启Composite Exporter服务
3. 验证端口可用性
重启前可以用以下命令验证新端口是否可用:
- Windows:
netstat -ano | findstr :<新端口号> - Linux/macOS:
lsof -i :<新端口号>
内容的提问来源于stack exchange,提问作者user21348790
相关产品推荐
相关产品推荐

