关于Tomcat7.*的Manger配置问题
2010-11-11 12:43
519 查看
如果在浏览器地址中访问Tomcat服务器后,想要登录Manager则需要做如下的配置:
打开Tomcat所在盘的文件夹,然后打开conf这个文件夹——打开tomcat-users.xml:
<tomcat-users>
<!--
NOTE: By default, no user is included in the "manager-gui" role required
to operate the "/manager/html" web application. If you wish to use this app,
you must define such a user - the username and password are arbitrary.
-->
<!--
NOTE: The sample user and role entries below are wrapped in a comment
and thus are ignored when reading this file. Do not forget to remove
<!.. ..> that surrounds them.
-->
<!--
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
</tomcat-users>
-->
插入如下代码:
<role rolename="manager-gui"/>
<user username="xxx" password="******" roles="manager-gui"/>
不要写在了注释里面,重新启动Tomcat就可以了!!!
打开Tomcat所在盘的文件夹,然后打开conf这个文件夹——打开tomcat-users.xml:
<tomcat-users>
<!--
NOTE: By default, no user is included in the "manager-gui" role required
to operate the "/manager/html" web application. If you wish to use this app,
you must define such a user - the username and password are arbitrary.
-->
<!--
NOTE: The sample user and role entries below are wrapped in a comment
and thus are ignored when reading this file. Do not forget to remove
<!.. ..> that surrounds them.
-->
<!--
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
</tomcat-users>
-->
插入如下代码:
<role rolename="manager-gui"/>
<user username="xxx" password="******" roles="manager-gui"/>
不要写在了注释里面,重新启动Tomcat就可以了!!!
相关文章推荐
- 关于TOMCAT配置问题
- 关于Tomcat 7.0版本的角色配置问题
- 关于在eclipes中配置tomcat不能显示主页面问题
- 关于【apache- tomcat- 5.5.15/conf /Catalina/localhost配置虚拟目录】时的一些问题。(配置web项目的方式不止一种,虚拟目录就是一个)
- 关于springmvc框架下tomcat6和tomcat7不配置welcome-file-list跳转到第一个页面的问题
- 关于在eclipes中配置tomcat不能显示主页面问题
- 关于【apache- tomcat- 5.5.15/conf /Catalina/localhost配置虚拟目录】时的一些问题。(配置web项目的方式不止一种,虚拟目录就是一个)
- 关于tomcat环境变量配置后,双击tomcat7.exe打不开的问题
- 关于Struts2.1.6中配置 constant name="struts.devMode" value="true" 在tomcat启动时报错的问题
- 关于Eclipse配置Tomcat问题和路径配置
- 关于在eclipes中配置tomcat不能显示主页面问题
- 关于在eclipes中配置tomcat不能显示主页面问题
- 关于eclipse中server中的Tomcat的环境配置问题
- 关于web项目中的图片上传、并在前端显示问题(tomcat中配置文件上传虚拟路径)
- 关于tomcat配置下server location在部署项目后不能修改的问题
- 【linux环境配置】关于eclipse配置tomcat服务的一个问题
- 关于tomcat配置https 引发的一系列问题特别是ie8以下(包括ie8)版本
- 关于在window10环境下配置Tomcat7.x首先遇到的问题
- 关于在eclipes中配置tomcat不能显示主页面问题
- 关于在eclipes中配置tomcat不能显示主页面问题