1. Test Tomcat
Start Tomcat, type in the browser: http: //127.0.0.1: 8080 /
2. Tomcat management
Tomcat's service management page is http://127.0.0.1:8080/admin
Tomcat application management page http://127.0.0.1/8080/Manager/html
3. Publish application
The JSP application WAR has two ways, one is to organize files according to a certain directory structure, one is a compression package for the suffix WAR, so it has two ways:
(1) Enter: http:// localhost: 8080 / manager / install? Path = / examples & war = file: / c: / examples will be deployed by the Table of Table
(2) If entering: http: // localhost: 8080 / manager / install? Path = / examples & war = jar: file: / c: /examples.war! / Will press the WAR organization of the compression package to note this URL The second half must have! / 号
For example, we release a message board program, the program storage location is d: / vcd / liuyanben, let's enter http: // localhost: 8080 / manager / install? Path = / liuyanben & war = file: / d: / vcd / liuyanben, the system will prompt to enter the administrator username and password. Subsequently, the following screen will appear.
Inform you, the program has been deployed
Enter: http: // localhost: 8080 / manager / remove? Path = / liuyanben will revoke the application you just deployed.
Then add application information in Server.xml (in the CONF subdirectory of the Tomcat installation directory), where the " context>" is identified before identifying " host>", the details are as follows:
DocBase = "d: / vcd / liuyanben" Reloadable = "true" /> Where Context represents a web application, DocBase represents the path to the application, and Path represents the application's publishing directory. 4. Start and close the app Enter http: // localhost: 8080 / manager / start? Path = / example: 8080 / manager / stop? Path = / examples, in your browser. 5. Re-load the application Enter http: // localhost: 8080 / manager / relocalhost: 8080 / manager / relocalhost: 8080 / manager / repline? Path = / example, the browser is shown: OK - Reloaded Application AT Context Path / Examples Indicates that the Example application is successful. If we set the reloadable property of Server.xml's context element to true, there is no need to reload the application using this manner because Tomcat will be loaded.