This problem is actually very simple. The main changes to the tomcat-user.xml in the conf directory are:
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="admin" password="" roles="manager-gui"/>
Then save and restart tomcat
When accessing manager/html directly, the user name is admin and the password is empty.