登录后台设置:tomcat-users.xml
<?xml version="1.0" encoding="UTF-8"?>
<tomcat-users> <role rolename="tomcat"/> <role rolename="manager-gui"/> <role rolename="manager-script"/> <role rolename="manager-jmx"/> <role rolename="manager-status"/> <user username="admin" password="xxxxxx" roles="tomcat,manager-gui,manager-script,manager-jmx,manager-status"/></tomcat-users>