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

Tomcat Server Building tutorial

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Share Tomcat server building tutorials, as follows

Step 1: download Tomcat

The official download URL is: http://tomcat.apache.org/ download interface: select the version you want to install under Download to download.

Step 2: install Tomcat

1: environment settin

Download the windows installation version, click directly to install it, but you must set the environment before installation-> set the JDK/JRE that the Tomcat runtime depends on.

JDK setting method: select my computer-> Properties-> Advanced system Settings-> Environment variables-> Select "New" under user variables, as shown below: the value of the variable is: the installation path of JDK

2: the installation process is as follows:

Click-> Next.

Stand alone-> I Agree.

Only User Name and Password are selected here, and default values are selected for the other options.

Select the JRE path that is installed on your computer.

Select the installation path for Tomcat.

Click-> Finish to complete the installation

Step 3: start Tomcat

You can directly run the startup.bat file in the bin directory to start Tomcat.

If the following effect occurs, Tomcat starts successfully:

After our startup is complete, type: http://localhost:8080 in the browser as shown below, where our Tomcat installation and startup are complete.

Introduction to the function of home directory file of Tomcat

There are several home directory folders for Tomcat:

1. Bin: an executable file for starting and shutting down tomcat.

2. Lib: store the required jar package in it.

3. Among the various configuration files of conf:tomcat, the main configuration files that need to be read when tomcat starts are:

Server.xml,web.xml,tomcat-users.xml, wait. All changes to the server are made from this directory.

4. Logs: log file, which is automatically recorded if there is an error on the server.

5. Server: the administrator of the server.

6. Webapps: all executable web projects will be placed in this directory. (note: the files that need to be released are placed in this directory.)

7. Work:tomcat puts all kinds of servlet generated by jsp in this folder, which contains .Java files and .class files.

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.

Share To

Servers

Wechat

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

12
Report