[英]Eclipse shows ports are in use while running a web app using tomcat v9 even when i change it
when I try to run a dynamic webpage project, I face ab error that some other process is already using those port numbers.当我尝试运行动态网页项目时,我遇到了一些其他进程已经在使用这些端口号的错误。 I restarted the PC but it didn't solve the problem.我重新启动了PC,但没有解决问题。 I've tried changing the port numbers but that doesn't work.我试过更改端口号,但这不起作用。
Here are the ports I changed it to:这是我将其更改为的端口:
From the image attached it shows that port 80805 is busy, already in use从附图中可以看出端口 80805 很忙,已经在使用中
netstat -aon | findstr 80805
The number that is shown as last column of above result is process ID of program that is using your port.上述结果最后一列显示的数字是正在使用您的端口的程序的进程 ID。
Suppose that number comes to 13360. Then use the following command to know exact process using your port.假设该数字为 13360。然后使用以下命令了解使用您的端口的确切过程。
tasklist | findstr 13360
Port numbers are only 16-bit.端口号只有 16 位。 Pick ones under 65,535.选择 65,535 以下的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.