Tomcat5.5 First Series (1) - Installations

xiaoxiao2021-03-06  43

Tomcat believes that most developers preferred development, testing web servers, I have used it for a while, there is a time to finish the relevant configuration to form an article, so that I have a review process 1. Download Tomcat (N more articles said Http://jakarta.apache.org/site/binindex.cgi to find 5.5.6-Alpha EXE is

2. Run jakarta-tomcat-5.5.5.exe under Windows, press the next step, custom installation, check all the options (if you want to learn ;-), specify the installation path E: / Tomcat 5.5, default 8080 Port, managing users are amdin, password is empty (that is, the default value, convenient), specify the JDK directory of the installed, OK! GO !!!

3. Installation, first don't busy Run, set an environment variable first, right-click My Computer -> Properties -> Advanced -> Environment Variable, In System Variable Bar, Variable Name: Tomcat_Home, Variable Value: E: / Tomcat 5.5 (The last installation path), OK, determined!, Open IE, type http: // localhost: 8080 See the big cat?

4. Now let's take a look at Tomcat, open Apache Tomcat 5.5 in the Start menu has the following menu: configure tomcat - This is the parameter setting of Tomcat, you can set the startup method (startupType), start the account (LON ON AS), Logging-Level Path (Log PATH) File Prefix (Log Prefix) Standard Output Steering () Standard Error Turn, Initialization Memory Allocation, etc. Monitor Tomcat - This is a monitor of Tomcat services, can start or Log out of the Tomcat service and display the current service status tomcat 5.5 program directory - this is not to say, it is Tomcat installation directory Tomcat Home Page - Tomcat Manager - this is a tool to manage Tomcat, remember to install it. Users and passwords? Use them to log in (what !? No? You must first start Tomcat service first, watermelon skin is not, you have to go! ^ _ ^!) Uninstall Tomcat 5.5 - Normal When you don't run it Welcome - this is big Most people are used to test whether Tomcat is installed on the web page, but it is not just this feature, you can find a lot of things you have to find in each list on the left. 5. After we are familiar with the installation directory (point Tomcat 5.5 Program Directory Menu) has the following directory structure: bin - Script of start / close Tomcat services CommON-containing the common class with Tomcat web applications, web applications automatically search for this directory class file, you can add other classes (such as Public JDBC driver), *. Class files are placed in subdirectory class, *. Jar files in the lib subdirectory Conf - contain different profiles, including server.xml (Tomcat's primary configuration file) and Tomcat configuration web application settings default file web.xml, more than the previous 4.x version of Catalina, which is specifically used to record Tomcat to be started with virtual hosts and virtual catalogs.

Logs - Tomcat places a log file from the Logs (related to Tomcat Parameter Settings to Tomcat) Server - this is the application of the SERVER service of Tomcat services (those who are managed) Shared - this. . . I don't quite clear, it should refer to the shared Java class or package, but what is the difference between Common, it is not very clear, please expert guidance WebApps

Tomcat default virtual host, there is a virtual directory of this virtual machine (including web project example)

In addition, you can create the following directory: Tomcat:

Work Tomcat automatically generates, place TMCAT running temporary files (such as compiled JSP files). If you delete this directory when running in Tomcat. JSP page will not be able to run .ok! At this first Tomcat First article, I will write the second application. I am not very good, I'm not writing, and I will correct it. Thank you for reading! Deep Blue 2004-12-28

转载请注明原文地址:https://www.9cbs.com/read-76201.html

New Post(0)