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--
Install TomCat on the windows platform
This article will introduce how to deploy TomCat in the Windows platform and take you to get started with TomCat
Introduction to TomCat
Tomcat is a core project of the Jakarta project of the Apache Software Foundation (Apache Software Foundation), which is jointly developed by Apache, Sun and other companies and individuals. Tomcat server is a free and open source Web application server, which is a lightweight application server. It is widely used in small and medium-sized systems and not many concurrent access users. It is the first choice for developing and debugging JSP programs.
Of course, you can simply think of it as a plug-in for Apache that can parse JSP programs. When an Apache server is configured on a machine, you can use it to respond to requests for access to HTML (an application under the standard general markup language). However, the problem is that the Apache server cannot respond to the access request of the JSP program page alone, so the plug-in TomCat is needed to help Apache respond. Most of all, Tomcat is an extension of the Apache server, but at run time it runs independently, so when you run TomCat, it actually runs as a separate process from Apache.
Download and install related software
Required software: JDK, TomCat (the relevant version can be selected to suit you.)
This demo uses the JDK software version: jdk-8u221-windows-x64
TomCat software version: apache-tomcat-9.0.26
Download JDK and TomCat
1. Download JDK
JDK is the foundation of all java applications, and all java applications are built on it. It is a set of API, or some java Class (classes). JDK is a set of things for developing java programs, and tomcat is a java program that is sent out.
Download address: https://www.oracle.com/technetwork/java/javase/downloads/index.html
Choose the appropriate software version of JDK according to your PC configuration and your application.
Because this demonstration uses the Windows system, I downloaded jdk-8u221-windows-x64.exe.
two。 Download Tomcat
Download address: https://tomcat.apache.org/download-90.cgi
Note: windows version selects .zip compressed package, linux version selects .tar.gz packaged package.
Second, install JDK
1. Install JDK
Find the installation package you just downloaded in the download directory and run the .exe file to start your installation.
Select the installation directory of JDK (note that Chinese directories are not allowed in the directory). The default installation path is "C:\ Program Files\ Java\ jdk version, which can be installed by default or customized (recommended). Click next after selection, remember the path during installation, and this directory will be used later. I will choose the default directory here.
At this point, JDK has been installed
two。 Configure JDK
On the desktop, right-click my computer (computer)-- > Properties, and select Advanced system Settings.
Select Advanced-- > Environment variables in system Properties.
Locate system variables in the Environment variables panel and select New.
In the 'New system variable' dialog box, enter "JAVA_HOME" in the variable name column, and fill in the variable value to find the installation path of jdk.
Then find the "CLASSPATH" variable in the "system variable", and when selected, click "Edit". Some computers do not have this variable, and those who do not have it can just create a new variable.
Finally, find the "path" variable in the "system variable". After it is selected, click "Edit".
Click New and enter: ";% JAVA_HOME%\ bin" at the end of the variable value line must be in English. And then make sure. At this point, the environment variables have been configured.
Confirm, and the configuration will be completed immediately after application.
3. Verify that JDK is installed successfully
Use the WIN+R shortcut key to open the run input cmd instruction and enter the doc command window
Enter "java-version", the following interface appears, and jdk is installed successfully.
two。 Install using TomCat
The TomCat package downloaded from the official website can be used without installation, only need to extract the TomCat package.
Decompressed directory
Here is a brief introduction to these directories in the TomCat directory:
The bin:bin directory is mainly used to store tomcat commands, there are two main categories, one is ending in .sh (linux command), the other is ending in .bat (windows command).
The conf:conf directory is mainly used to store some configuration files for tomcat.
The lib:lib directory is mainly used to store jar packages that need to be loaded for tomcat to run.
The logs:logs directory is used to store log files generated during the operation of tomcat.
Temp:temp directory users store temporary files generated during the operation of tomcat.
The webapps:webapps directory is used to store applications, and when tomcat starts, it loads the applications in the webapps directory.
The work:work directory is used to store the compiled files of tomcat at run time.
3. At this point, the deployment of TomCat is complete. Let's start this TomCat next.
Use the win+R shortcut key to open the run input cmd and enter the doc command line interface
Find the root directory of TomCat and copy its path
Enter "D:" on the doc command line to enter the D disk directory (enter the D disk directory because I installed TomCat to the d disk)
Then enter "cd TomCat installation directory / bin"
After entering the directory, you can first view the contents of the directory and enter "dir"
Enter "startup.bat" to start TomCat
Enter shows that the start is successful.
Next, let's try to access (the default port is 8080). The access method is IP:8080, the server where TomCat resides.
The following interface indicates that the access is successful
Summary
The above is the tutorial diagram of installing TomCat in Windows10 introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply you in time. Thank you very much for your support to the website!
If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!
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.