Idea解决Web server failed to start. Port 8080 was already in use.端口被占用

简介: Idea解决Web server failed to start. Port 8080 was already in use.端口被占用

Idea解决Web server failed to start. Port 8080 was already in use.端口被占用


报错信息如下:

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.

报错原因:

是因为Tomcat的端口被占用了,你需要修改一下端口号,或者把正在运行的端口号进程杀死.

解决方案1:

在yml文件中修改端口号为8081

server:
 port: 8081

解决方案2:

  • win+R —> 输入cmd —> 回车
  • 输入命令 —> netstat -ano | findstr "8080"
  • 找到被占用的进程号14916,输入命令 —> taskkill -pid 进程号 -f
  • 或者使用任务管理器关闭服务 Ctrl+Alt+Del —> 打开任务管理器
相关文章
|
3月前
|
JavaScript 前端开发 Java
Idea启动SpringBoot程序报错:Veb server failed to start. Port 8082 was already in use;端口冲突的原理与解决方案
本文解决了Idea启动SpringBoot程序报错:Veb server failed to start. Port 8082 was already in use的问题,并通过介绍端口的使用原理和操作系统的端口管理机制,可以更有效地解决端口冲突问题,并确保Web服务器能够顺利启动和运行。 只有锻炼思维才能可持续地解决问题,只有思维才是真正值得学习和分享的核心要素。如果这篇博客能给您带来一点帮助,麻烦您点个赞支持一下,还可以收藏起来以备不时之需,有疑问和错误欢迎在评论区指出~
|
4月前
|
网络协议 Java Shell
java spring 项目若依框架启动失败,启动不了服务提示端口8080占用escription: 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-优雅草卓伊凡解决方案
java spring 项目若依框架启动失败,启动不了服务提示端口8080占用escription: 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-优雅草卓伊凡解决方案
183 7
|
8月前
IDEA创建项目失败提示 Failed to create directory 或 “项目初始化失败”
文章解释了IDEA创建项目失败提示“Failed to create directory”或“项目初始化失败”的原因通常是由于IDEA对目标文件夹没有操作权限,并建议更换一个有权限的文件夹来创建项目。
1082 2
IDEA创建项目失败提示 Failed to create directory 或 “项目初始化失败”
|
8月前
|
Java 开发工具 Windows
IDEA启动报端口占用 The port may already be in use or the connector may be misconfigured
【10月更文挑战第8天】本文介绍了在使用IDEA开发工具时遇到的端口占用问题及其解决方法。首先尝试关闭IDEA和Java进程,若无效则通过命令行查询并结束占用端口的进程,以确保项目顺利启动。
|
8月前
|
监控 Java Linux
问题回顾:Unable to start web server; nested exception is org.springframework.boot.web.server.
解决“Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException”这一问题,关键在于细致的故障诊断和逻辑推理。从日志入手,逐步排查端口冲突、依赖问题、配置错误、资源限制、代码bug以及版本兼容性等多个方面,最终定位并解决根本原因。每一步操作都应谨慎且有针对性,确保修改一处后充分测试,避免引入新的问题。
2131 0
IDEA Error:java: Compilation failed: internal java compiler error 解决办法
IDEA Error:java: Compilation failed: internal java compiler error 解决办法
324 0
|
10月前
|
Java Maven
Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
298 0
|
12月前
IDEA同一项目启动在不同端口方法
IDEA同一项目启动在不同端口方法
1319 0
Idea的server.port端口不生效yml配置文件不生效
Idea的server.port端口不生效yml配置文件不生效
857 2
|
20天前
|
Web App开发 前端开发 JavaScript
鸿蒙5开发宝藏案例分享---Web适配一多开发实践
这是一份实用的鸿蒙Web多设备适配开发指南,针对开发者在不同屏幕尺寸下的布局难题提供了解决方案。文章通过三大法宝(相对单位、媒体查询和窗口监听)详细介绍如何实现智能适配,并提供了多个实战案例,如宫格布局、对话框变形和自适应轮播图等。此外,还分享了调试技巧及工具推荐,帮助开发者快速上手并优化性能。最后鼓励读者实践探索,并提示更多官方资源等待发现。
下一篇
oss创建bucket