1. Questions
When you start Tomcat through eclipse, you throw an exception java.net.SocketException:Unrecognized Windows Sockets error:0: Jvm_bind. The reason for this exception is that the server port is occupied
The solutions include the following two kinds of methods:
One: Change the port number of the server;
Second: Close the process that occupies the port currently occupied
2. Change the server port number
To the Server.xml file under the Conf folder under the Tomcat directory, locate
<connector port= "8080" protocol= "http/1.1" connectiontimeout= "20000" redirectport= "8443"/>
Modify the port to
<connector port= "8088" protocol= "ajp/1.3" redirectport= "8443"/>
3. Close the process that currently occupies the port
1) First enter the command line to see if the port is occupied
Use command: Netstat-ano
The port of my server is 443
This port has been occupied by a process with a PID of 3432
2) End the PID 3432 process through the Task Manager or the Taskkill program.
Unrecognized Windows Sockets error:0: Jvm_bind