在tomcat-user.xml里面配置

<tomcat-users xmlns="http://tomcat.apache.org/xml"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"
              version="1.0">
<role rolename="manager-script"/>
<role rolename="manager-gui"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<user username="admin" password="admin" roles="manager-gui,manager-status"/>

  就可以用admin/admin登录tomcat管理页面。

http://localhost:8080/manager/

相关文章:

  • 2021-07-28
  • 2021-10-22
  • 2021-05-16
  • 2022-01-06
  • 2022-01-20
  • 2021-12-13
  • 2022-12-23
  • 2021-09-01
猜你喜欢
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
  • 2021-05-20
相关资源
相似解决方案