In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to install and use Tomcat, with a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
First, installation step 1. download
Https://tomcat.apache.org/
two。 Decompression
3. open
Double-click the startup.bat batch file in the bin folder
4. View configuration
The access properties (such as port, default page, etc.) of this tomcat server can be configured in the server.xml file under the conf directory, just like the configuration files of other web servers such as apache.
5. Visit
According to the hosts file in the C:\ Windows\ System32\ drivers\ etc directory, the mapped localhost address is the local IP, which matches and accesses successfully.
6. Analysis.
The above page comes from the jsp file in the ROOT directory in the webapps directory
As a result, I went to imitate another one.
Access the port with this directory name (here is zlc), and the access is successful.
Second, learning style 1. Use the example folder that comes with it
two。 Attempt to access
Visit examples according to the way you previously imitated its default page (you built the zlc folder, and the path plus zlc access succeeded).
3. Example display
Take Servlet as an example:
For the mapping configuration content in web.xml in Servlet, find and study it here.
3. Configure Tomcat in IDEA
Thank you for reading this article carefully. I hope the article "how to install and use Tomcat" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.