eclipse运行服务器,报错被占用端口

Port 8080 required by Tomcat v8.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).

1、运行服务器时报错:
在这里插入图片描述
2、解决
①、Windows搜索cmd.exe,右键选择“以管理员身份运行”(根据电脑不同此操作不同,有的电脑占用该端口号的进程需要管理员权限才可以终止(则需要“以管理员身份运行”),有的则不需要(windows+R,cmd进入命令)
在这里插入图片描述
②、找到占用端口号8080的进程

netstat -ano | findstr 8080
taskkill -pid 9360 -f

在这里插入图片描述

发布了15 篇原创文章 · 获赞 6 · 访问量 1052

猜你喜欢

转载自blog.csdn.net/qq_40306266/article/details/104065177