Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to modify the default port number 8080 of tomcat

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. Background

By default, the port of tomcat is 8080 and two tomcat are used, so you need to change the port number of one of them for both to work at the same time.

2. Methods

2.1 change one

So, how do you change the port number of tomcat? First, go to the installation directory (or extract the directory) to find the conf folder, and find the files of server.xml in it.

find

Just change port= "8080" to something else.

This modification can be resolved for port 8080 conflicts, but it is not complete if you want to use two tomcat at the same time, because there are other ports that will conflict. We still need to continue to modify

2.2 change II

Set

8009 of it is changed to something else.

2.3 change three

Continue to

8005 of it is changed to something else.

3. Open the browser and enter http://192.168.71.128:9999, to find that port 9999 can be accessed to tomcat normally. So far, the default port 8080 of tomcat has been successfully modified.

After the above three amendments, it should be all right. If not, then look at some error prompts, it should be said that there is a conflict in that port, and then change it as needed.

The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report