1、启动tomcat,在浏览器输入:http://localhost:8080/

    Tomcat 访问 Manager App,Host Manager

  2、配置tomcat-users.xml 文件

    在主目录的cong文件夹下找到tomcat-users.xml 文件中配置用户角色:

    针对第三个按钮“Host Manager”,配置角色时一定把角色配全。修改tomcat-users.xml 文件,加入如下代码:

    

<role rolename="admin-gui"/>
  <role rolename="manager-gui"/>
  <user username="tomcat" password="tomcat" roles="admin-gui,manager-gui"/>

 

    配置tomcat-users.xml文件后,重新启动tomcat服务。在浏览器的地址栏中输入: localhost:8080,回车。成功访问tomcat,

    点击要访问的Server Status、Manager App、Host Manager

    在弹出的“身份验证”框中输入用户名:tomcat,密码:tomcat,点击登录按钮。效果如下:

    Tomcat 访问 Manager App,Host Manager

 

 

    Tomcat 访问 Manager App,Host Manager

 

    Tomcat 访问 Manager App,Host Manager

 

相关文章:

  • 2021-09-29
  • 2022-12-23
  • 2021-12-12
  • 2021-10-12
  • 2022-12-23
  • 2021-07-26
  • 2022-01-11
猜你喜欢
  • 2022-12-23
  • 2021-12-10
  • 2021-07-21
  • 2022-12-23
  • 2021-12-31
  • 2021-09-16
  • 2021-11-23
相关资源
相似解决方案