In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Download Tomcat
1. Go to the official website http://tomcat.apache.org/, select download, and download the desired Tomcat version.
Here we choose to download the latest version of Tomcat 9.
Note that there are two formats: zip and exe, zip (64-bit Windows zip (pgp,md5,sha1)) is installation-free, and exe (32-bit/64-bit Windows Service installer (pgp,md5,sha1)) is installed. At the same time, observe whether your computer is a 64-bit system or a 32-bit system.
Choose to download the zip version here
Decompress directly after download
2. Locate the startup.bat under the directory bin, and click start Tomcat;shutdown.bat: close Tomcat.
3. After starting Tomcat, open the browser and type http://localhost:8080 to enter the following page to indicate that the installation is successful:
II. Configuration of Tomcat environment variables
1. After the installation is complete, right-click "my computer", click "Properties", and select "Advanced system Settings"
2. Select the "Advanced" tab and click "Environment variables".
Then the image shown in the following figure appears:
3. Add the system variable CATALINA_BASE,CATALINA_HOME to the "system variable"
Variable name: CATALINA_BASE
Variable value: d:\ tools\ apache-tomcat-8.5.4 / / Tomcat installation directory
Variable name: CATALINA_HOME
Variable value: d:\ tools\ apache-tomcat-8.5.4
Click OK.
4. You also need to modify the variable values of ClassPath and Path here.
Add% CATALINA_HOME%\ lib\ servlet-api.jar; to the variable value of ClassPath (pay attention to the ";" in English state after the original variable value)
Add% CATALINA_HOME%\ bin;%CATALINA_HOME%\ lib to the variable value of Path (pay attention to the ";" in English state after the original variable value)
Click OK and the Tomcat environment variable is configured.
5. Verification is needed here.
Click "start"-> "run" and type "cmd" (or shortcut key win+R); type the command: startup, and the following message appears indicating that the environment variable is configured successfully
3. Configure Tomcat in IntelliJ IDEA
1. Click Run-Edit Configurations...
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 IntelliJ IDEA configuration Tomcat is complete.
4. Compile, package and deploy locally (you need to create a webAPP project for maven, see another article)
1. Enter mvn install directly in the Terminal terminal at the bottom left of idea, compile and package successfully, and display the word BUILD SUCCESS. When we re-examine the project directory, we find that there is a target directory under the root directory of the project, and the war package is also typed in this directory.
2. Enter the deployment interface again
3. Click + in Deployment to select the project to be deployed.
Choose TestDemo.war as the deployment package here.
4. Fill in the access path (usually the project name, which will be synchronized to the localhost of the server tab after typing), and click OK
5. You can see the deployed project in the Application Servers in the main interface. Click the green triangle on the left to run the Tomcat server.
Click and display as follows:
More related technical content:
Configure Maven using IntelliJ IDEA (getting started)
The method of configuring JDK using IntelliJ IDEA
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.
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.