Tomcat Settings About Directory

xiaoxiao2021-03-06  96

Tomcat5 configuration JSP environment

In Window2003 assumes your JDK1.5 installation in D: / JDK, Tomcat5 is installed in D: / Tomcat

first step:

In my computer properties -> Advanced -> Environment Variables -> Added User Variables in User Variables of Administrator

Variable name: java_home Variable: D: / JDK

Variable name: Tomcat_home Variable: D: / Tomcat

Variable Name: Path Variable Name: D: / JDK; D: / JDK / BIN

Variable name: ClassPath variable:.; D: / JDK / lib; d: /jdk/tt.jar; d: /jdk/tools.jar; d: / tomcat / common / lib / mysql-connector-java .jar; D: / JDK / JRE / LIB; D: / Tomcat / lib

Step 2:

1> Modify D: / Tomcat/conf/catalina/localhost/root.xml file directory can change Tomcat root directory

Here is the root.xml file content I tied to the root directory of the JSP file in the D: / WWW directory.

Save Restart Tomcat Open IE Type http: // localhost: 8080 to access the JSP file that point to the root directory.

2> Add a virtual directory only need to create a new XML file that is newly created in the D: / Tomcat / Conf / Catalina / localhost / directory to save the Tomcat!

For example: In D: Newly built a virtual directory called WWW, www.xml is as follows:

< / Context>

Open IE Type http: // localhost: 8080 / WWW to access the JSP file that you point to the virtual directory

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

New Post(0)