修改:conf/tomcat-users.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-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<user username="admin" password="admin" roles="manager-gui,manager-script,manager-jmx,manager-status"/>
</tomcat-users>
本文介绍如何通过修改tomcat-users.xml文件来配置Tomcat服务器的管理界面访问权限。具体步骤包括定义角色和用户,设置用户名和密码等。完成配置后,可通过特定URL访问管理状态页面。

1499

被折叠的 条评论
为什么被折叠?



