![Address localhost:1099 is already in use Address localhost:1099 is already in use](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
在 ItelliJ idea中创建了Servlet,启动tomcat时系统报错: Error running Tomcat 7.0.47: Address localhost:1099 is already in use
系统报错的端口为1099,可见8080端口已被占用;
1. 在命令提示窗口中执行命令: netstat -ano
可见,占用1099端口的进程的PID是10460。
2. 执行命令: tasklist(通过pid 10460定位)
可见java.exe 占用了1099端口。同样可以查出8080端口的应用程序,然后在任务管理器中终止相应的进程即可。
本文改自:https://blog.****.net/huazhongkejidaxuezpp/article/details/41813683