按照網路上的教程(如:對安裝目錄下config資料夾中的tomcat-users.xml進行設定:
xml version='1.0' encoding='utf-8'經過資料查詢得知在tomcat不同版本在tomcat-users.xml設定了username和password的方式是不同。?>
<
tomcat-users
>
<
role
rolename
="tomcat"
/>
<
role
rolename
="manager"
/>
<
role
rolename
="admin"
/>
<
user
username
="tomcat"
password
="123"
roles
="tomcat,admin,manager"
/>
tomcat-users
>
具體如下:
1、tomcat 7.x以下:
按照上面說法進行即可。
2、tomcat 7.x:
role改成了manager-gui,admin-gui,而不是原來的admin,manager;
即:
xml version='1.0' encoding='utf-8'?>
<
tomcat-users
>
<
role
rolename
="manager-gui"
/>
<
role
rolename
="admin-gui"
/>
<
user
username
="tomcat"
password
="123"
roles
="manager-gui,admin-gui"
/>
tomcat-users
>
tomcat管理介面登入無法進入
準備如下 首先在 tomcat conf tomcat users.xml 中新增了 rolename manager gui rolename manager script rolename manager jmx rolename manager status username admin pa...
tomcat管理介面登入無法進入
準備如下 首先在 tomcat conf tomcat users.xml 中新增了 rolename manager gui rolename manager script rolename manager jmx rolename manager status username admin pa...
tomcat 無法啟動
tomcat 啟動日誌報出以下錯誤 error transport error 202 bind failed address already in use transport.c l41 error jdwp transport dt socket failed to initialize,tra...