01Springboot启动时端口被占用
程序员文章站
2022-07-12 15:38:23
...
title: 01Springboot启动时端口被占用
tags: Error
abbrlink: 50465
date: 2020-09-28 12:02:42
categories:
-
- 计算机科学
- Java
- SpringBoot框架
- SpringBoot框架常见错误集合
项目场景:
Springboot在启动时出现端口8888被占用
问题描述:
Springboot在启动时出现端口被占用
错误提示:
Description:
Web server failed to start. Port 8888 was already in use.
Action:
Identify and stop the process that's listening on port 8888 or configure this application to listen on another port.
Disconnected from the target VM, address: '127.0.0.1:54879', transport: 'socket'
[ERROR] Command execution failed.
Command execution failed.
原因分析:
由于之前开启vue项目启动,再启动后端时会报错。
解决方案:
netstat -aon|findstr "9000"
查看端口号运行进程
taskkill /pid 进程号 -f`
上一篇: SpringBoot——01概念&入门
下一篇: 【c++学习笔记】this指针