tomcat根文件夹下的conf文件夹下有个tomcat-users.xml文件
填写内容例如以下
<? xml version='1.0' encoding='utf-8'? ><tomcat-users> <role rolename="admin-gui"/> <role rolename="admin-script"/> <role rolename="manager-gui"/> <role rolename="manager-script"/> <role rolename="manager-jmx"/> <role rolename="manager-status"/> <user username="tomcat" password="mytomcatadmin" roles="manager-gui,manager-script,manager-jmx,manager-status,admin-script,admin-gui"/> </tomcat-users>
帐号为tomcat
password为mytomcatadmin
时间: 2024-10-24 03:44:07