tomcat configuration tomcat-user.xml does not take effect

tomcat configuration tomcat-user.xml does not take effect

Configuration content

vim    tomcat-user.xml add the following

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

After configuring the above content, by default, if your tomcat is installed in a virtual machine, remote access to 8080, click Host manager or Manager App is not authorized to access


Need to edit the tomcat/webapps/manager/META-INF/context.xml file

Comment out the following sections

<!--
    <Valve className="org.apache.catalina.valves.RemoteAddrValve"
         allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />
    -->
The user configured when the Manager App is clicked takes effect




Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326282627&siteId=291194637