下载地址:http://tomcat.apache.org/download-55.cgi
假设tomcat的安装目录为:D:\apache-tomcat-5.5.25
解压Administration Web Application,假设目录为F:\ apache-tomcat-5.5.25
- 把F:\ apache-tomcat-5.5.25 \server\webapps下面的admin文件夹copy到D:\apache-tomcat-5.5.25\server\webapps下面;
- 把F:\ apache-tomcat-5.5.25\ conf\Catalina\localhost下面的admin.xml文件copy到D:\apache-tomcat-5.5.25\conf\Catalina\localhost下面。
- 打开D:\apache-tomcat-5.5.25\conf下的tomcat-users.xml,添加下面一句: <user password="admin" username="admin" roles="admin,manager"></user>
xml 代码
- <user?username="admin"?password="admin"?roles="admin,manager"/>??
<user password="admin" username="admin" roles="admin,manager"></user><user password="admin" username="admin" roles="admin,manager"></user>
?????? 启动tomcat,然后打开IE:http://localhost:8080,
?????? 点击Tomcat?Administration即可进入Tomcat server Administrator登录页面
?????? 用户名:admin??? 密码:admin