The Apache Tomcat software is an open source implementation of the Jave Servlet, JavaServer Pages, Java Expression Language and Java WebSocket 
technologies.
Install Tomcat 
  check bin/setclasspath.bat “set JAVA_HOME = “ same with system environment variable JAVA_HOME. 
 
Deploy Web Application 
1
2
3
4
5
 < Host  name = "localhost"  appBase = "webapps"  
		unpackWARs = "true"  autoDeploy = "true"  
		xmlValidation = "false"  xmlNamespaceAware = "false" > 
	< Context  path = "/DEMO"  docBase = "D:\web_application\DEMO"  debug = "0"  reloadable = "false"  />
< /Host > 
Deploy multiple Web applications in one Tomcat 
1
2
3
4
5
6
7
  
< Host  name = "localhost"  appBase = "webapps"  
		unpackWARs = "true"  autoDeploy = "true"  
		xmlValidation = "false"  xmlNamespaceAware = "false" > 
	< Context  path = "/DEMO"  docBase = "D:\web_application\DEMO"  debug = "0"  reloadable = "false"  />
	< Context  path = "/DEMO1"  docBase = "D:\web_application\DEMO1"  debug = "0"  reloadable = "false"  />
< /Host > 
 
  Set different ‘webAppRootKey’ in Web.xml of every Web application 
 
1
2
3
4
5
6
  
< ! --  define  webAppRootKey  in  web .xml --> 
    < context -param > 
    < param -name > webAppRootKey < /param-name > 
    < param -value > demo .root</param-value > 
    < /context-param > 
 
Run multiple Tomcats in one machine 
To modify all ports in server.xml of Tomcat
Reference