首页 » 操作系统 » linux » tomcat默认管理界面

tomcat默认管理界面

 

编辑conf/tomcat-users.xml

<role rolename="manager-gui"/>

<user username="admin" password="password123" roles="admin-gui,admin,manager-gui,manager,manager-script"/>

将以上内容添加到</tomcat-users>字段之上。

允许任意IP访问

分别编辑webapps/host-manager/META-INF/context.xml 和webapps/manager/META-INF/context.xml文件,并注释掉一下内容

<!-- <Valve className="org.apache.catalina.valves.RemoteAddrValve"
allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" /> -->

原文链接:tomcat默认管理界面,转载请注明来源!

1