Tomcat download, unzip after the WebApps directory comes with several webapp:
* Docs Documentation: This is a static page set that you can read without starting Tomcat
* Examples of examples
* Hostmanager Host Manager
* Manager Application Manager
* Root directory: This app can access the above four apps, the app is the default app, this app is very simple, only some resource files and a JSP page.
After you install Tomcat, start Startup.bat in the bin directory. In the browser address bar input localhost:8080, carefully read the homepage, this page is very important, all-encompassing, you can enter the document, you can go to the configuration ...
With the document, do not need Baidu, do not need to download documents from the official website Doc-full.zip, carefully read, all the questions here can find the answer.
I. Modify, add a port number
The default port number for the Tomcat default port is 80 for the 8080,http service. After entering the IP or domain name in the browser address bar, if you do not enter a port number, the default is 80 port.
Modify the Conf/server.xml file under the Tomcat directory, the service tag can have multiple connector, and then add a 80 port connection to it.
<connector port= "8080" protocol= "http/1.1" connectiontimeout= "20000" redirectport= "8443"/> < Connector port= "protocol=" http/1.1 " connectiontimeout=" 20000 " redirectport=" 8443 "/>
Two. Set the default app
To add a context tag and set docbase, note that the path delimiter in Java always follows the '/' to be correct.
In fact, the approach described above is an unwise one, and the best policy is to change the name of WebApp directly to Root,tomcat default root directory is the default WebApp
Tomcat set port number and default WebApp