Tomcat not starting (throwing java.net.BindException: )

前端 未结 11 2190
礼貌的吻别
礼貌的吻别 2021-02-04 01:05

I have done the following settings to run a Java web project but somehow my Tomcat is not starting from Eclipse:

JAVA_HOME : C:\\Program Files\\Java\\jdk1.6.0_         


        
11条回答
  •  庸人自扰
    2021-02-04 01:33

    You should not have to change the server.port to fix this problem...

    Mac/Unix/Linux Users: If after you restart Tomcat, and this problem still exists, it is probably because Tomcat was shutdown improperly and there are resources still associated with it that are now locked. You can see the PIDs of those resources by running this command:

    lsof | grep tomcat
    

    Terminate those processes using:

    kill -15 
    

    This should fix your problem.

    Using the kill -15 command to TERM (-15) the process rather than SIGKILL (-9) is preferable. The -15 switch sends the process the signal to begin it's shutdown phases and clean up bounded resources.

提交回复
热议问题