1. 程式人生 > >重新設定Tomcat管理員使用者名稱和密碼(v8.0)

重新設定Tomcat管理員使用者名稱和密碼(v8.0)

修改%CATALINA_HOME%\conf\tomcat-users.xml檔案,在tomcat-users標籤中新增如下內容:

<tomcat-users xmlns="http://tomcat.apache.org/xml"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"
              version="1.0">
  <role rolename="manager-gui"/>
  <role rolename="admin-gui"/> 
  <user username="admin" password="admin" roles="manager-gui,admin-gui"/> 
</tomcat-users>