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 Tomcat 6.x port number in MyEclipse

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

Share

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

How do I modify the Tomcat 6.x port number in MyEclipse? Many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can gain something.

MyEclipse Tomcat 6 is the Tomcat of MyEclipse.

When using the Tomcat I downloaded myself, such as the apache-tomcat-6.0.48 I downloaded from the Tomcat official website, I can't change the port number here. So where do I modify it?

I first add apache-tomcat-6.0.48 to my MyEclipse and find the

Window--Preferences--MyEclipse--Service--Tomcat--Tomcat 6.x

I have found a lot of places on MyEclipse and searched a lot of information on the Internet. How to modify the port number of Tomcat 6.x in MyEclipse is all about modifying the Tomcat that comes with MyEclipse, and modifying the port number of apache-tomcat-6.0.48 that I added myself. There are few articles. However, I still found some articles, thanks to all the selfless sharers on the Internet. Let's introduce one now.

I deployed the web project to Tomcat 6.x and found my web project under Servers

Open the folder D:\ apache-tomcat\ apache-tomcat-6.0.48\ webapps\ computer_1

Return to D:\ apache-tomcat\ apache-tomcat-6.0.48 in the folder

Locate the server.xml file in the D:\ apache-tomcat\ apache-tomcat-6.0.48\ conf directory

Open server.xml with Editplus or notepad and find:

Change port= "8080" to port= "80" and save. Just do it.

Redeploy the web project to Tomcat 6.x, and the release can see:

Visit the home page of the web project in the browser. You don't need to use http://localhost:8080/computer_1 to access the project.

You can access the project using http://localhost/computer_1

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

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