Tomcat进入Manager的问题


  1. 解除注释Tomcat/conf目录下的 tomcat-users.xml 文件下的 <tomcat-users> </tomcat-users> 字段
  2. 进入manager界面之后,显示的是403 Access Denied
    解决办法:
    <pre>
    在conf/tomcat-users.xml文件中看到这么一段话:
      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.
     也就是说,为了考虑安全,tomcat默认还是没有manager-gui的管理权限的,如果想要使用manager的话,需要自行加入管理权限(角色)。
    </pre>

综上:
需要加一个这样的权限(角色) :
<role rolename="manager-gui"/>
然后再加到需要的用户名中去:
<user username="tomcat" password="tomcat" roles="tomcat,manager-gui"/>


给个github follow me的链接,上面有很多初学者可供学习的资料,项目.

<a>https://github.com/SuperZee</a>

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 135,403评论 19 139
  • 项目环境 tomcat7 和maven3.3.9 正确部署过程 步骤一:修改修改tomcat的conf目录下tom...
    走过路过见过记得阅读 5,046评论 0 9
  • Apache Tomcat Introduction Apache Tomcat is a web server ...
    BEN匪阅读 3,966评论 1 1
  • 这个夏天,是我高考之后的第一个夏天,它是那样的炎热,好像要把我的整个青春燃烧掉。从6月8日考完回到家,直到今天,7...
    若之晓浅阅读 1,469评论 0 0
  • 文章理由 前段时间负责Unity接入谷歌内购功能,这篇就作为2016年末的最后一篇接入谷歌内购文章写给需要的人 准...
    能不写代码么阅读 10,267评论 4 19