在conf文件夹下找到 user.xml 添加 <role rolename="manager-gui"/> <user username="tomcat" password="ximao" roles="manager-gui"/>