当前位置:网站首页>出现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解决方案
边栏推荐
- How does the web container initialize third-party plug-ins
- 513. Find Bottom Left Tree Value
- Image saving: torchvision utils. save_ image(img, imgPath)
- Advanced development stage - the thickening of potential suspension wire begins A small step now, a big step next year
- After the model is created, initialize the variables in con2d, convtranspose2d, and normalized batchnorm2d functions
- Quartz
- npm install 问题解决(nvm安装与使用)
- Image reading: image open(ImgPath)
- 《利用CAS实现自旋锁》
- Drag the child file to the upper level
猜你喜欢

XML

科大讯飞神经影像疾病预测方案!

聚焦:ZK-SNARK 技术

A tour of grpc:01 - Basic Theory

2022 Jiufeng primary school (Optics Valley No. 21 primary school) student source survey

stylegan3:alias-free generative adversarial networks

XML

Golang writes to JSON files

二分查找法思路分析

Interpreting the 2022 agile coaching industry status report
随机推荐
How can I get the discount for opening a securities account? Is online account opening safe?
leetcode:面试题 08.13. 堆箱子【自顶而下的dfs + memory or 自底而上的排序 + dp】
CA authentication and issuance of revocation certificates
golang日期时间time包代码示例: 根据生日获取年龄、生肖、星座
PageHelper在面对复杂service数据处理下的分页问题
Interpreting the 2022 agile coaching industry status report
ABP框架之——数据访问基础架构(下)
[tcapulusdb knowledge base] Introduction to tmonitor background one click installation (I)
ADB 按键名、按键代码数字、按键说明对照表
js中 if 直接判断 数据类型 结果举例
总结一下购买阿里云服务器的经验
Drag the child file to the upper level
【OpenHarmony】usb gadget 配置hdc功能cfg文件解读
How did Tencent's technology bulls complete the overall cloud launch?
SaaS cloud tool, a sharp tool for change under the industrial Internet
R语言使用magick包的image_scale函数对图像进行缩放(resize)、可以自定义从宽度或者高度角度进行缩放
CA认证和颁发吊销证书
What are the risks of opening a fund account? Is it safe to open an account
Server deployment and instructions
golang gob实现网络数据的传输