当前位置:网站首页>出现Identify and stop the process that‘s listening on port 8080 or configure this application等解决方法
出现Identify and stop the process that‘s listening on port 8080 or configure this application等解决方法
2022-06-23 15:44:00 【码农研究僧】
1. 问题所示
出现如下问题:
***************************
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.
Process finished with exit code 1
截图如下:
2. 问题分析
通过查看相关错误日志,发现是端口被占用了
一种是清除8080被占用的端口,另一种解决方案是换一个端口(也可不用8080端口)
知道了解决方案之后就很好解决方法
具体解决方法如下
3. 解决方法
关闭进程或者修改端口号两种方法
3.1 关闭进程
通过netstat 8080,查看是否有进程在使用这个端口(但是列表中的内容比较多,不好查看比较)
精确查询应该配合findstr(注意命令应和linux区分开来,这是windows版本)
完整命令如下:netstat -ano | findstr 8080
杀死该进程即可:taskkill /F /PID 26868

重启服务即可成功
3.2 修改端口
既然端口号被占用,那就换一种思路,修改8080端口为你想要的(不占用其他端口)
操作如下:
增加内容如下:server.port= 8085
重启服务即可成功
额外补充:如果重启之后网页打开如下:
可看我之前的文章:
springboot出现Whitelabel Error Page This application has no explicit mapping for /error解决方案
边栏推荐
- Golang writes to JSON files
- 港股多支个股表现活跃,引发投资者对港股市场回暖猜想与关注
- golang goroutine、channel、time代码示例
- Avoid these six difficulties and successfully implement MES system
- 线上交流丨可信机器学习之机器学习与知识推理相结合(青源Talk第20期 李博)
- How is it cheaper to open a stock account? Is it safe to open an account online now?
- Code examples of golang goroutine, channel and time
- 创新实力再获认可!腾讯安全MSS获2022年度云原生安全守护先锋
- OutputDebugString使用说明以及异常处理
- js中 if 直接判断 数据类型 结果举例
猜你喜欢

Tips for accelerating file transfer between windows remote desktop connections

Solution: in the verification phase, the first batch does not report errors, and the second batch reports CUDA exceeded errors

Golang对JSON文件的写操作

PageHelper faces the paging problem of complex service data processing

golang冒泡排序代码实现

【TcaplusDB知识库】TcaplusDB Tmonitor模块架构介绍

进阶开发阶段-势若悬丝的加粗开始. 现在的一小步,明年的一大步

Innovation strength is recognized again! Tencent security MSS was the pioneer of cloud native security guard in 2022

Ten thousand words introduction, detailed explanation of the core technical points of Tencent interview (t1-t9), and arrangement of interview questions

Stick to five things to get you out of your confusion
随机推荐
Amadis发布OLA支付处理标准
How to quickly respond to changing production management needs?
openGauss数据库源码解析系列文章—— 密态等值查询技术详解(下)
多年亿级流量下的高并发经验总结,都毫无保留地写在了这本书中
腾讯的技术牛人们,是如何完成全面上云这件事儿的?
R语言使用tidyquant包的tq_transmute函数计算持有某只股票的天、月、周收益率、ggplot2使用条形图(bar plot)可视化股票月收益率数据、使用百分比显示Y轴坐标数据
Build vscode into an invincible IDE (14) tasks JSON and launch JSON configuration details, add automation tasks at will
How does the web container initialize third-party plug-ins
leetcode:面试题 08.13. 堆箱子【自顶而下的dfs + memory or 自底而上的排序 + dp】
【TcaplusDB知识库】TcaplusDB新增机型介绍
Drag the child file to the upper level
机器人方向与高考选专业的一些误区
创新实力再获认可!腾讯安全MSS获2022年度云原生安全守护先锋
【TcaplusDB知识库】Tmonitor单机安装指引介绍(一)
js中 if 直接判断 数据类型 结果举例
Innovation strength is recognized again! Tencent security MSS was the pioneer of cloud native security guard in 2022
Avoid these six difficulties and successfully implement MES system
规避这六大难点,成功实施MES系统
[openharmony] USB gadget configuration HDC function cfg file interpretation
Pytorch: saving and exporting models