在TOMCAT目录下面找CONF文件下的tomcat-users.xml,增加 <user username=”admin” password=”tomcat” roles=”admin, manager”/>