Apache Tomcat Project Path Customization
Download tomcat6.0 path : http://tomcat.apache.org/download-60.cgi
I am here to test with window_x64 tomcat6.0, if you are the other system, choose the image of the download. (pictured below)
① after downloading the Tomcat compression pack to unpack and open, find "conf" Open new Folder "Catalina" (the following figure)
② Open "Catalina" and create a new folder "localhost" (as shown below)
③ continue to open the "localhost" directory and create a new file "Test.xml" (The following figure: The test here can be customized by itself, typically deployed in the Tomcat project name)
④ Open the new "Test.xml" file and edit the following
Change all the red box contents in the picture to the project name, where the Docbase attribute refers to the project configuration road strength, I place the D-Packing directory below
<?xml version= ' 1.0 ' encoding= ' utf-8 '?> <context '
true ' crosscontext= ' 5 ' debug= ' test ' Docbase= "D:\test" path= "/test" reloadable= "false" workdir= "Work\catalina\localhost\test" >
</Context>
⑤ will project the D-Packing directory, if your previous step is not set up in the D-Packing directory, you set according to your own directory to put
⑥ return to find the Tomcat root directory, open the "Bin" directory, double-click the "Startup.bat" file to start Tomcat
⑦ Enter the URL in the browser to open the project
End: Small white study, master do not spray