Learn Java-Configuring Tomcat

xiaoxiao2021-03-06  17

I have learned Java before ... but just the language category, but I didn't really handle the Java runtime environment (because I used JBuilder at the time, it's virtual machine running). Relive Java in these days, and solved it will not be configured Tomcat's problem, very fast in my heart.

Configure Tomcat 5:

working environment:

Win XP

Prerequisites:

Install JDK (I installed the JDK 1.4.2_03 version, the installation directory is c: /j2sdk1.4.2_03) Install Tomcat 5 (I am decompressed package installation method, extract Tomcat 5 content to: f: / tomcat5 position, because decompressed Package installation method, so some manual configurations should be brought

method:

Add system environment variables. The environment variables that need to be set are:

Classpath:.; c: /j2sdk1.4.2_03/lib/tools.jar path: (same as the system variable); c: /j2sdk1.4.2_03/bin java_home: c: /j2sdk1.4.2_03 Tomcat_home: f : / Tomcat5 launched Tomcat. Tomcat installation directory: f: / tomcat5 / bin has a startup.bat used to start Tomcat Runtime service; shutdown.bat is the end service. Try Trial Configuration Site. Open F: / Tomcat5 / Conf / Server .xml, found with content: =========================================== ======================================================= - Define a non-SSL Coyote HTTP / 1.1 Connector on port 8080 -> =========================== ============================================================================================================================================================================================================= =============

It can be seen that the Connector is a web service connection that sets non-SSL HTTP 1.1 access. Properties port is configured access port, and other attributes are configured to configure some HTTP access parameters. Look at: ============= ============================================================================================================================================================================================================= ============================ =================================== ============================================================================================================================================================================================================= ======= Host is the server properties configured to configure the Web Application, the other most concerned is the AppBase property, which is the physical location of the Web Application on the web server. If your program is in the C: / JSP directory, you can Create the value of AppBase to C: / JSP This, Tomcat is also configured, when running a JSP / Servlet (Java) Web Application, just execute Startup.bat, running the Java virtual machine is OK.

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

New Post(0)