找到安装目录下:tomcat-user.xml,在其中配置:
<role rolename="admin"/>
<role rolename="manager"/>
<user username="admin" password="admin" roles="admin,manager"/>
http://localhost:8087/manager/status
<role rolename="admin"/>
<role rolename="manager"/>
<user username="admin" password="admin" roles="admin,manager"/>
http://localhost:8087/manager/status