In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article is about how to deploy the Tomcat server, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
Let's not talk about it. Let's take a look at what Tomcat is.
Definition: Tomcat is a Web application server and a Servlet/JSP container.
It's easy to understand that Tomcat is an application server. But it is also a container for Servlet/JSP. What is the Servlet/JSP here? The pretty girl looked confused.
In order to answer my sister's confusion, I drew a picture casually:
As you can see from the figure, servlet is equivalent to a small piece of software installed in Tomcat, which specializes in handling access requests sent by browsers. Servlet can return data directly to the browser, or it can read and write the database through servlet.
The full name of JSP is Java Server Pages, and the Chinese name is java Server Page, which is basically a simplified Servlet design. Thus, JSP handles returning pages from the server to the browser.
After my analysis, the girl realized thoroughly and basically understood the concepts related to Tomcat. Then I began to teach girls how to deploy local Tomcat for software debugging.
One: download Tomcat
Web site: https://tomcat.apache.org/download-90.cgi
My sister's computer system is 64-bit, so I asked him to download the Tomcat version of Windows64.
Step 2: decompress Tomcat and configure IDEA associated Tomcat
The first step is to check to see if Tomcat can run. Find the startup.bat of the bin directory under the decompressed Tomcat, and click start Tomcat;shutdown.bat: close Tomcat.
After launching Tomcat, open a browser and type http://localhost:8080 to enter the following page to indicate that the installation is successful:
If the startup is not successful, it is recommended to check whether the environment variable JAVA_HOME of JDK is configured. It was because the jdk was not properly configured in my sister's computer that it took some effort to help her.
No gossip. Configure IDEA association Tomcat now
1. Click Run-Edit Configurations on IDEA.
2. Click "+" on the left and select Tomcat Server--Local
3. Under Tomcat Server-> Unnamed-> Server-> Application server project, click Configuration, locate the local Tomcat server, and then click the OK button.
At this point, the environment configuration of Tomcat is complete.
The above is how to deploy the Tomcat server, the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
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.