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 > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Tomcat server is a free open source Web application server, belongs to lightweight application server, in small and medium-sized systems and concurrent access to users is not a lot of occasions are commonly used, is the development and debugging JSP program of choice. For starters, think of Apache as a server that, when configured on a machine, can be used to respond to requests for access to HTML (an application in Standard Common Markup Language) pages. Tomcat is actually an extension of Apache Server, but it runs independently, so when you run tomcat, it actually runs as a separate process from Apache.
The latest version of Tomcat is 9.0. Today, we will download Tomcat 9 configuration under Windows environment by simple demonstration.
Step 1: Configure JDK environment variables consistent with the system (32 bits/64 bits)(1) Download JDK installation package from official website:
Official website download address:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Choose the appropriate installation package for your operating system (be sure to choose Accept License Agreement)
(2) Install JDK:
Install JDK Select an installation directory There are two installation prompts during installation. The first time is to install jdk, the second time is to install jre. It is recommended that both be installed in different folders within the same java folder. (cannot both be installed in the root directory of java folder, jdk and jre installation in the same folder will error)
Installation completed as shown in the figure below
(3) Configure environmental variables
Configure environment variables after installing JDK Computer → Properties → Advanced System Settings → Advanced → Environment Variables
System variables → New java-home variable.
Variable value fill in the installation directory of jdk (I am C:\ProgramFiles\Java\jdk1.8.0_111)
System Variables → Find Path Variables → Edit
Enter %java-home%\bin at the end of variable value;
(Note that there is no; sign at the end of the variable value of the original Path, if not, enter the; sign first and then enter the code above)
System variables → New CLASSPATH variable
Variable Value Fill in.;% java-home%\lib;%java-home%\lib\tools.jar (note the dot at the beginning)
System variables configured.
Step 2: Verify JDK configuration is successful (32 bit/64 bit)
Verify that the configuration is running successfully Enter cmd java -version (there is a space between java and-version)
If the version information is displayed as shown in the figure, the installation and configuration are successful.
64 bits as shown below, there will be clear version comments, if not, 32 bits
Step 3: TOMCAT9 Installation Configuration (1) Download TOMCAT9 from official website
Download the latest version of tomcat
http://tomcat.apache.org/download-90.cgi
After downloading free installation, this configuration demonstration after decompression I put in the D:\Program Files\apache-tomcat-9.0.0.M15 directory.
Note that 32 is located in the 64-bit JDK, otherwise TomCat will report a specific error 1
(2) CMD command to configure TOMCAT
(3) Four ways to activate TOMCAT
1. Double-click startup.bat batch processing under bin directory to run tomcat (the advantage of this is that you can see the running state, the database appears, and the code reports an error. Recommended use)
2. Run cmd as administrator to run net starttomcat9 command (9 is the version number)
3. Run through services in Task Manager
4. Double-click tomcat9w.exe in the bin directory to punch in and click start to run tomcat. The demonstration figure is as follows:
(4) Successful demonstration
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.