Identify and stop the process that‘s listening on port 8090 or configure this application to listen

文章目录

前言

  1. 老项目升级,按文档在五台机器组成的集群上重新部署,三台部署完毕,两台报错,查了log,有点懵逼,没启动成功。。。。

    16:58:46.740 [restartedMain] INFO  sys-user - [shutdownAsyncManager,31] - ====关闭后台任务任务线程池====
    17:28:25.693 [Thread-14] INFO  sys-user - [shutdownAsyncManager,31] - ====关闭后台任务任务线程池====
    17:28:48.863 [restartedMain] INFO  sys-user - [shutdownAsyncManager,31] - ====关闭后台任务任务线程池====
    11:20:00.586 [restartedMain] INFO  sys-user - [shutdownAsyncManager,31] - ====关闭后台任务任务线程池====
    
  2. 又查了这个时间点的启动记录,报错:Identify and stop the process that's listening on port xxx or configure this application to listen on another port.,翻译为:识别并停止在端口xxxx上侦听的进程,或将此应用程序配置为在另一个端口上侦听。

  3. 找到原因,冲突了呗,后来经排查,最近老项目升级,端口被占用了

解决方案

  1. 更换下端口
>netstat -ano | findstr 8090
  TCP    0.0.0.0:8090           0.0.0.0:0              LISTENING       18568
  TCP    [::]:8090              [::]:0                 LISTENING       18568

>taskkill /F /PID 18568
>netstat -ano | findstr 8090

猜你喜欢

转载自blog.csdn.net/qq_43408367/article/details/132735800
今日推荐