How to change the port of Tomcat from 8080 to 80?

后端 未结 13 790
野的像风
野的像风 2020-11-22 17:22

I want to execute my web app as http://localhost.

13条回答
  •  半阙折子戏
    2020-11-22 17:38

    1) Go to conf folder in tomcat installation directory

     e.g. C:\Tomcat 6.0\conf\
    

    2) Edit following tag in server.xml file

    
    

    3) Change the port=8080 value to port=80

    4) Save file.

    5) Stop your Tomcat and restart it.

提交回复
热议问题