到Tomcat的cof目录下的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="tomcat"
roles="manager-gui,manager-script,manager-jmx,manager-status,admin-script,admin-gui" />
</tomcat-users>