Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install tomcat in Windows environment

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is to share with you about how to install tomcat in the Windows environment, 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.

1. Open the official website

two。 Select the latest Tomcat 9 under the navigation bar Download on the left, and click "64-bit Windows zip (pgp, md5, sha1)" at the bottom of the page to proceed.

3. Extract to a directory

4. Configure environment variables

a. Configure the environment variables for jdk (abbreviated)

b. Create a new variable name in the system variable: CATALINA_BASE, variable value: d:\ Program Files\ apache-tomcat-9.0.6

c. Create a new variable name in the system variable: CATALINA_HOME, variable value: d:\ Program Files\ apache-tomcat-9.0.6

d. Open PATH in the system variable and add the variable value:% CATALINA_HOME%\ lib;%CATALINA_HOME%\ bin

5. Install tomcat

Open cmd, enter the bin directory under tomcat, and execute "service.bat install" attached: service uninstall command: service.bat remove

6. Start tomcat

Method 1: double-click in the bin folder under the tomcat path to open tomcat9w.exe, and click "start" in the open soft management software.

Method 2: right-click "my computer"-> "Administration"-> "Services and applications"-> "Services" on the desktop, find the "Apache Tomcat 9.0 Tomcat9" service, right-click the service, and select "start".

After tomcat starts, you can find the "Commons Daemon Service Runner" process in the task manager process, under which a "Apache Tomcat 9.0 Tomcat9" service is running.

7. Test whether the installation is successful

Use a browser to open http://localhost:8080/. If you open it successfully, tomcat is installed and running successfully.

The above is how to install tomcat in the Windows environment. 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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report