第一次写web应用时遇到的问题集
端口被占用
1、Several ports (8005, 8080) required by Tomcat v7.0 Server at localhost are 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).
问题截图

解决:
右键结束任务就好了。
其实(正解)用命令行找到占用端口的应用进程,再去kill结束。(我试了试,虽然找到了对应进程,但是没成功,可能是我太菜了=_=)
本文介绍了解决Tomcat启动时端口被占用的方法,包括直接结束任务和使用命令行查找并结束占用端口的进程。

被折叠的 条评论
为什么被折叠?



