今天在学习 Hibernate 的过程中,碰到了这个问题。经过网络搜索和亲自实践,解决了这个问题。
不过,解决问题之后我没能够成功复原这一现象,就将我参考的文章转载过来好了。
参考文章如下:
Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use.解决办法
内容如下:
Several ports (8005, 8080, 8009) 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).
1、在dos下,输入 netstat -ano|findstr 8080
//说明:查看占用8080端口的进程,显示占用端口的进程
2、taskkill /pid 1952 /f
//说明,运行windows自带taskkill命令,将上面显示的进程号,结束掉。
或者在 右键任务栏-->启动任务管理器--找到相应的pid,关掉程序
经过以上步骤的处理,我的问题很快得到了解决。