---
title: "tomcat的密码是什么？"
author: "lynnwoo"
date: "2011-05-10T09:38:16Z"
tags: ["Tomcat", "XML"]
categories: ["Web前端"]
slug: "tomcat"
draft: false
lastmod: "2011-05-10T09:38:16Z"
id: 1038565
url: "https://lynnwoo.iteye.com/blog/1038565"
---

conf目录下的tomcat-user.xml是 ==================================== 这里role 只有tomcat role1权限的用户，而tomcat5.5我们需要点“Tomcat Manager”进去管理，可见 是因为权限不对造成的。 知道了问题所在， 我们来解决它， 1.关闭 tomcat5.5 2.打开tomcat-user.xml(在conf文件夹下)，添加一个"manager"的权限，并添加一个 登陆名为admin,登陆密码为admin的用户，指定其权限为manager.修改后的tomcat-user.xml如下： ========================== ==================================== 3.保存好tomcat-user.xml,重启动tomcat5.5, 输入：http://127.0.0.1:8080/ 看到熟悉的tomcat界面；点击“Tomcat Manager”，输入 用户名admin, 密码admin，看到管理界面了