以文字編輯器手動修改配置文件/tomcat/conf/tomcat-user.xml
因為tomcat預設沒有圖形管理介面的使用者帳號及名稱
所以必須修改tomcat-user.xml,加入使用者帳號其名稱才能使用
修改內容如下
<tomcat-users>
<role
rolename="admin-gui"/>
<role
rolename="admin-script"/>
<role
rolename="manager-gui"/>
<role
rolename="manager-script"/>
<role
rolename="manager-jmx"/>
<role
rolename="manager-status"/>
<user
username="tomcat" password="s3cret"
roles="manager-gui,manager-script,manager-jmx,manager-status,admin-script,admin-gui"/>
//使用者名稱為tomcat,密碼為s3cret,繼承所有開放的權限
</tomcat-users>
- manager-gui - allows access to the HTML GUI and the status pages
- manager-script - allows access to the text interface and the status pages
- manager-jmx - allows access to the JMX proxy and the status pages
- manager-status - allows access to the status pages only
設定好了以後重新啟動,開瀏覽器,輸入http://localhost:8080
輸入用戶名和密碼就可以進入圖形管理介面了
全站熱搜