1 conf/tomcat-users.xml
添加如下内容:
<role rolename="admin-gui"/> <role rolename="manager-gui"/> <role rolename="manager-jmx"/> <role rolename="manager-script"/> <role rolename="manager-status"/> <user username="admin" password="admin" roles="admin-gui,manager-gui,manager-jmx, manager-script,manager-status"/>
增加用户角色和用户。
2 webapps/manager/META-INF/context.xml
注销对应内容,增加:
<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="^.*$" />
example doc host-manager 等类似修改
标签:xml,界面,Tomcat,登录,用户,manager From: https://www.cnblogs.com/zhjx0521/p/17822449.html