增加管理员和口令 %CATALINA HOME%conf\tomcat users. xml <?xml version=1.0 encoding=utf-8?> <tomcat-users> <role rolename="manager / <role rolename=tomcat / <role rolename=role1"7> <user username= both"password="tomcat roles="tomcat role1> <user username="tomcat password="tomcat roles="tomcat manager / <user username=role 1 password=tomcat roles=role1/> </tomcat-users> C: Program Files apache Tomcat 6.0. 14\conf
增加管理员和口令 <?xml version='1.0' encoding='utf-8'?> <tomcat-users> <role rolename="manager"/> <role rolename="tomcat"/> <role rolename="role1"/> <user username="both" password="tomcat" roles="tomcat,role1"/> <user username="tomcat" password="tomcat" roles="tomcat,manager"/> <user username="role1" password="tomcat" roles="role1"/> </tomcat-users> %CATALINA_HOME%\conf\tomcat_users.xml C:\Program Files\Apache Tomcat 6.0.14\conf
访问 Tomcat的 Manager工具 http://localhost:8080/manager/html 文件①据④查看①收英)工具①助① e·[日+·v:·。 ☆回m ··页面化)·工具 The apache Software foundation http://www.apache.org/ Tomcat Web Application Manager Manager List Applications HIML Manager Heln aner Helr Server Status Applications Display Na Running Sessions Commands Start Stop Relead underlay Welcome to Tomcat e.| Expire sessions with idle:2图0 Stat Stop Reload undeploy ichon Chapter 1 Example (Wrox Beginning Ja sEner Pages) art Stan REload unde
访问Tomcat的Manager工具 http://localhost:8080/manager/html
自动布置WAR文件 http://localhost:8080/manager/html 文件①据④查看①收英)工具①助① ☆回m ··页面化)·工具 Testmanager at Manager Applcation manager amcat Manager Applcation Deploy Deploy directory or WAR tile located on t XML Configuration file URL WAR o Directory UF□ Deploy WAR file to deploy Server Informarion IVERsion JVM Vendor S Name os Versions Architecture Apache Tomcat(6.0.14 1.6.0_02-b06 Sun Microsystems Inc.Windows XP5.1
自动布置WAR文件 http://localhost:8080/manager/html
Tomcat port % CATALINA HOME%conf\server xml <connEctorport=8080protocol="http:/1.1 connection Timeout=20000 redirectOr=8443/>
Tomcat Port %CATALINA_HOME%\conf\server.xml … <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> …
URL Mappin Urlhttp://localhost:8080/ <webapp>/<pathname>/<filename> File %CATALINA_HOME%webapps\<webapp>\<pathname>\<filename> http://localhost:8080/examples/jsp/jsp2/simpletag/hellojsp 几 C:\ Program Files\ Apache Tomcat 6.0.14\ webapps \ examples jsp jsp2\ simpletag \hello jsp
URL Mapping URL File http://localhost:8080/ <webapp>/<pathname>/ <filename> %CATALINA_HOME%\webapps\<webapp>\ <pathname>\<filename> http://localhost:8080/examples/jsp/jsp2/simpletag/hello.jsp C:\Program Files\Apache Tomcat 6.0.14\ webapps\examples\jsp\jsp2\simpletag\hello.jsp