1、啟動tomcat,在瀏覽器輸入:http://localhost:8080/

2、配置tomcat-users.xml 文件
在主目錄的cong文件夾下找到tomcat-users.xml 文件中配置用戶角色:
針對第三個按鈕“Host Manager”,配置角色時一定把角色配全。修改tomcat-users.xml 文件,加入如下代碼:
<role rolename="admin-gui"/> <role rolename="manager-gui"/> <user username="tomcat" password="tomcat" roles="admin-gui,manager-gui"/>
配置tomcat-users.xml文件后,重新啟動tomcat服務。在瀏覽器的地址欄中輸入: localhost:8080,回車。成功訪問tomcat,
點擊要訪問的Server Status、Manager App、Host Manager
在彈出的“身份驗證”框中輸入用戶名:tomcat,密碼:tomcat,點擊登錄按鈕。效果如下:



