TomCat启动报错:Port 8080 required by Tomcat v8.0 Server at localhost is already in use.

一、问题描述:tomcat部署项目以后,启动报错,端口占用。如下图所示:
TomCat启动报错:Port 8080 required by Tomcat v8.0 Server at localhost is already in use._第1张图片

解决方法一:

1.Win+R 打开运行 ,输入cmd 打开命令行窗口 。

2.假设要查询端口8080被占用情况,在命令行下输入:netstat -ano|findstr 8080
TomCat启动报错:Port 8080 required by Tomcat v8.0 Server at localhost is already in use._第2张图片
3.得到进程号 2656(每个人的可能不一样),继续输入命令: tasklist|findstr “2656”
TomCat启动报错:Port 8080 required by Tomcat v8.0 Server at localhost is already in use._第3张图片
4.得到进程映像名称 java.exe ,然后点击结束进程。

TomCat启动报错:Port 8080 required by Tomcat v8.0 Server at localhost is already in use._第4张图片到此:重启tomcat,发现报错没有了,可以正常启动了。

TomCat启动报错:Port 8080 required by Tomcat v8.0 Server at localhost is already in use._第5张图片**

解决方法二:

**
修改Tomcat的端口号:

找到Tomct的安装路径下的conf文件夹,例如下面:
TomCat启动报错:Port 8080 required by Tomcat v8.0 Server at localhost is already in use._第6张图片
打开server.xml文件,修改Connector 元素的port属性的值即可。例如将8080修改为8081即可。
TomCat启动报错:Port 8080 required by Tomcat v8.0 Server at localhost is already in use._第7张图片

你可能感兴趣的:(tomcat,tomcat启动报错,端口占用,tomcat端口占用)