Address localhost:1099 is already in use

时间:2023-03-09 09:26:29
Address localhost:1099 is already in use

在 ItelliJ idea中创建了Servlet,启动tomcat时系统报错: Error running Tomcat 7.0.47: Address localhost:1099 is already in use

系统报错的端口为1099,可见8080端口已被占用;

1. 在命令提示窗口中执行命令: netstat -ano

  Address localhost:1099 is already in use

可见,占用1099端口的进程的PID是10460。

2. 执行命令: tasklist(通过pid 10460定位)

  Address localhost:1099 is already in use

可见java.exe 占用了1099端口。同样可以查出8080端口的应用程序,然后在任务管理器中终止相应的进程即可。

本文改自:https://blog.****.net/huazhongkejidaxuezpp/article/details/41813683