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

前端 未结 11 2343
礼貌的吻别
礼貌的吻别 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:43

    TIL: Someone else on a server can start IIS on port 80 and not tell anyone.
    If you have your tomcat configured for the same port, it will also report this error.
    The port on IIS or tomcat will need to be changed.

    To modify the port in IIS:
    Administrative Tools | Internet Information Services (IIS) Manager
    Right Click on Default Web Site | Edit Bindings... Change Port

    -OR-

    To modify the port in Tomcat:
    Open conf\server.xml and update the port value in tag:

    
    

    Restart Tomcat

    Enjoy 2 web services.

提交回复
热议问题