tomcat服务器能够热部署新的web应用,进入tomcat manager页面。
comcat安装部署完成之后,要进入manager页面和host manage页面,提示输入用户名,密码 需要修改/conif/tomcat-users.xml文件。
<!--
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="<must-be-changed>" roles="tomcat"/>
<user username="both" password="<must-be-changed>" roles="tomcat,role1"/>
<user username="role1" password="<must-be-changed>" roles="role1"/>
-->
改为
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manage-gui"/>
<role rolename="admin-gui"/>
<user username="tomcat" password="<must-be-changed>" roles="manager-gui"/>
<user username="both" password="<must-be-changed>" roles="tomcat,role1"/>
<user username="admin" password="yourpassword" roles="manager-gui"/>
然后输入用户名admin,密码.就可以进入host-manager管理页面了。
输人tomcat就可以进入manager管理页面了

本文介绍了如何配置Tomcat 8服务器的Manager页面,包括修改tomcat-users.xml文件,添加角色和用户以实现对管理页面的访问。通过设置不同角色如manager-gui和admin-gui,用户可以使用用户名和密码登录Manager和Host Manager页面进行应用的部署和管理。
1335

被折叠的 条评论
为什么被折叠?



