A recent exception was thrown when Tomcat was started Java.net.SocketException:Unrecognized Windows Sockets error:0: Jvm_bind exception, The exception means that your Tomcat server's port is occupied, such as my port is 8080.
The solutions are generally divided into two ways:
1. Modify the port number of the Server.xml file in the Tomcat directory (presumably everyone knows this workaround).
2. Close the process that currently occupies the port
The first approach is not detailed here, because it is very simple.
The second solution is described in detail below
First go to the command line and enter Netstat-ano to see exactly which process is taking up your server port.
For example, your server port is 3389, and you can see that the port is being consumed by the PID 1360 process.
Then you just need to find the PID 1360 process and end the process in Windows Task Manager.
Entering the Windows command line, enter the tasklist command to query the status of all current processes in the system, and find the process of PID 1360
Name is Svchost.exe
Close the process in Windows Explorer (svchost.exe)
The above example simply provides a way to find the process that occupies the port. PS: How to get to the Windows service main process went ....