报错信息如下:
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.
当idea项目启动时报这个错,意思是端口 8080被占用>,解决办法有两个:
1.修改项目组的端口号
先全局搜↓
port:

找到 8080并改为8081
# 开发环境配置 server: # 服务器的HTTP端口,默认为8080 port: 8081
2.关闭占用此端口号的服务
(以下为示例)
先键盘输入(win+r),在运行对话框中输入“cmd”进入DOS窗口:
再输入命令:
netstat -ano | findstr "8080"
找到占用8080端口的进程号4252

输入
tasklist|findstr "进程号"
回车得到占用8080端口的进程,一般为java.exe

找到java.exe并手动结束

这时,再去重启就解决了








![[2.0快速体验]Apache Doris 2.0 弹性计算节点快速体验](https://img-blog.csdnimg.cn/img_convert/1bebae53f3d3d603ba986498f9b453f4.webp?x-oss-process=image/format,png)










