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 and configure Tomcat

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly shows you "how to install and configure Tomcat", the content is easy to understand, clear, hope to help you solve your doubts, let the editor lead you to study and learn "how to install and configure Tomcat" this article.

1. Download the relevant version

Download the corresponding version on the official website (this installation version 9.0.31): [click to enter the official website]

Note: in particular, the Tomcat version must be higher than the jdk version. If your Tomcat version is lower than the jdk version, there may be various errors or failures due to compatibility problems between the Tomcat and jdk versions, so it is recommended that Tomcat be higher than the jdk version. (https://tomcat.apache.org/)

two。 Decompress after the download is complete

3. Configure environment variables

Click: environment variable configuration

There are detailed configuration tutorials in this article

4. Check whether the environment variable of jdk is configured, because jdk1.8 does not need to configure JAVA_HOEM in the future, you only need to configure Path, but consider the problem of Tomcat, so configure JAVA_HOME here.

5. Because the startup.bat in the bin folder under the apache-tomcat-9.0.31 directory has been configured, you need to configure the environment variables of jdk, not CATALINA_HOME.

6. Start tomcat for testing, open the bin folder in the apache-tomcat-9.0.31 directory, and then double-click startup.bat to start tomcat. If you start successfully, you will see start Server startup in [453] milliseconds. If you start tomcat for testing, open the bin folder under the apache-tomcat-9.0.31 directory, and then double-click startup.bat to start tomcat. Garbled code after startup may be a coding problem, and the system defaults to UTF-8. Just change the java.util.logging.ConsoleHandler.encoding = UTF-8 to java.util.logging.ConsoleHandler.encoding = GBK in the logging.properties file under the conf folder in the apache-tomcat-9.0.31 directory, and double-click startup.bat again to start tomcat.

7. Open the browser, enter http://localhost:8080 or http://127.0.0.1:8080 in the address bar to open the tomcat home page, Tomcat can not be turned off, if off can not access the local host.

* * 8. Configuration completed *

These are all the contents of the article "how to install and configure Tomcat". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to 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

Development

Wechat

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

12
Report