打开conf/tomcat-users.xml文件,写入:<role rolename="manager-gui"/><user username="1" password="1" roles="manager-gui"/>