tomcat port is occupied

1. Win+R to open Run, enter cmd to open the command line window.

 

2. Assuming that you want to query the occupancy of port 8080, enter in the command line: netstat -aon|findstr "8080"

 

 

3. Get the process number 2996, continue to enter the command: tasklist|findstr "2996"

 

 

4. Get the process image name TNSLSNR.EXE

 

5. Ctrl + Alt + delete Open the task manager, find the process named TNSLSNR.EXE, right-click, and end the process.

 

6. In this way, the problem that the port is occupied is solved.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324952652&siteId=291194637