java.net.BindException: Address already in use: JVM_Bind

后端 未结 2 364
無奈伤痛
無奈伤痛 2020-12-12 06:53

I have 2 tomcats running in my server

one Tomcat 7 and the other is tomcat 8, the configuration file server.xml for the first is:

           

        
2条回答
  •  盖世英雄少女心
    2020-12-12 07:39

    
    

    8080 is the port number on which server will run. Only one server (which you will start first) would run. Other one will throw Jvm Bind Exception.

    So, change the port number so that they are unique.

    One you run first server then use netstat command to see the ports which are in use.

提交回复
热议问题