zoukankan      html  css  js  c++  java
  • springboot项目启动控制台显示端口被占用解决方法

    控制台启动报错:

    Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
    2020-04-24 16:39:29.231 ERROR 2864 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :

    ***************************
    APPLICATION FAILED TO START
    ***************************

    Description:

    Web server failed to start. Port 8080 was already in use.

    Action:

    Identify and stop the process that's listening on port 8080 or configure this application to listen on another port.

    ,显示端口8080被占用

     第一种解决方法,win+r 打开cmd ,输入命令 netstat -aon 查看进程,找到8080,

    或者输入指定8080的命令:netstat -aon|findstr "8080"

     

     输入命令格式:taskkill /t /f /pid 进程id,杀掉8080进程,比如:taskkill /t /f /pid 6736

    第二种方法:修改配置文件端口,比如改为8081,8082

     这样是很不方便,每次都需要修改端口或kill掉进程,在pom文件中把fork改为false就行

  • 相关阅读:
    各种数据库默认端口总结
    Entity Framework学习
    Entity Framework学习
    .Net MVC API初试
    MongoDB Shell
    MongoDB安装及简单实验
    Android Studio记录
    Android使用Fragment程序崩溃
    git操作笔记
    centos防火墙设置
  • 原文地址:https://www.cnblogs.com/ljmm/p/12768438.html
Copyright © 2011-2022 走看看