给tomcat配置manager-gui账号

1. 编辑/regulatoryreport/ups/apache-tomcat-8.5.51/conf/Catalina/localhost/manager.xml,添加下面内容:

 

<Context privileged="true" antiResourceLocking="false"

         docBase="${catalina.home}/webapps/manager">

    <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="^.*$" />

</Context>

2. 编辑/regulatoryreport/ups/apache-tomcat-8.5.51/conf/tomat-users.xml,在<tomcat-users </tomcat-users>中添加下面内容:

 

<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-gui"/>

  <user roles="manager-gui" username="tomcat" password="tomcat123"/>

 

</tomcat-users>

3. 重启tomcat

点击Manager APP,输入用户名tomcat,密码tomcat123。

 

 

 

posted @ 2021-02-25 16:46  TONGYING2020  阅读(306)  评论(0编辑  收藏  举报