The source : http://www.netadmintools.com/art340.html
作者写的够清楚了,偶就不多说了。^_^
There are a couple web-based administration tools that come with
Tomcat, but you have to set up the admin and manager access first. This
is done by adding a line to tomcat-users.xml:
[iyunv@srv-1 conf]# pwd
/opt/tomcat/conf
[iyunv@srv-1 conf]# vi tomcat-users.xml
Add the line with admin,manager in it:
Of course, pick a better name and password. :) Note that the paths in this article are based on the Tomcat install we did in this article. You will need to restart Tomcat for the changes to take effect:
[iyunv@srv-1 bin]# pwd
/opt/tomcat/bin
[iyunv@srv-1 bin]# ./shutdown.sh
Using CATALINA_BASE: /opt/tomcat
Using CATALINA_HOME: /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JAVA_HOME: /opt/j2sdk
[iyunv@srv-1 bin]# ./startup.sh
Using CATALINA_BASE: /opt/tomcat
Using CATALINA_HOME: /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JAVA_HOME: /opt/j2sdk
[iyunv@srv-1 bin]#
When we browse to http://srv-1:8080/manager/html, we can log on: