課程
/后端開發(fā)
/Java
/JAVA遇見HTML——JSP篇
求對(duì)策
2014-11-25
源自:JAVA遇見HTML——JSP篇 4-4
正在回答
<?xml?version='1.0'?encoding='utf-8'?> <!-- ??Licensed?to?the?Apache?Software?Foundation?(ASF)?under?one?or?more ??contributor?license?agreements.??See?the?NOTICE?file?distributed?with ??this?work?for?additional?information?regarding?copyright?ownership. ??The?ASF?licenses?this?file?to?You?under?the?Apache?License,?Version?2.0 ??(the?"License");?you?may?not?use?this?file?except?in?compliance?with ??the?License.??You?may?obtain?a?copy?of?the?License?at ??????http://www.apache.org/licenses/LICENSE-2.0 ??Unless?required?by?applicable?law?or?agreed?to?in?writing,?software ??distributed?under?the?License?is?distributed?on?an?"AS?IS"?BASIS, ??WITHOUT?WARRANTIES?OR?CONDITIONS?OF?ANY?KIND,?either?express?or?implied. ??See?the?License?for?the?specific?language?governing?permissions?and ??limitations?under?the?License. --> <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"> <!-- ??NOTE:??By?default,?no?user?is?included?in?the?"manager-gui"?role?required ??to?operate?the?"/manager/html"?web?application.??If?you?wish?to?use?this?app, ??you?must?define?such?a?user?-?the?username?and?password?are?arbitrary.?It?is ??strongly?recommended?that?you?do?NOT?use?one?of?the?users?in?the?commented?out ??section?below?since?they?are?intended?for?use?with?the?examples?web ??application. --> <!-- ??NOTE:??The?sample?user?and?role?entries?below?are?intended?for?use?with?the ??examples?web?application.?They?are?wrapped?in?a?comment?and?thus?are?ignored ??when?reading?this?file.?If?you?wish?to?configure?these?users?for?use?with?the ??examples?web?application,?do?not?forget?to?remove?the?<!..?..>?that?surrounds ??them.?You?will?also?need?to?set?the?passwords?to?something?appropriate. --> <!-- ??<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="manager-gui"/> ??<role?rolename="manager-script"/> ??<role?rolename="admin-gui"/> ??<role?rolename="manager-jmx"/> ??<role?rolename="manager-status"/> ??<user?username="tomcat"?password="123456"?roles="manager-status"/> </tomcat-users>
qq_阿良_5
慕粉1851516597
在tomcat-users.xml中配置賬號(hào)密碼后,記得重啟tomcat,修改的東西才有效
為什么設(shè)置好了用戶名和密碼之后可以進(jìn)入后臺(tái),但再次重啟tomcat用戶名就登錄不上了?失效了!!! ? ? ? ? ? ? ? ?tomcat-users.xml里面也沒有了剛剛的配置!
.o0.0o. ?哈哈 謝謝
O(∩_∩)O非常感謝!~
<?xml?version='1.0'?encoding='utf-8'?> <!-- ??Licensed?to?the?Apache?Software?Foundation?(ASF)?under?one?or?more ??contributor?license?agreements.??See?the?NOTICE?file?distributed?with ??this?work?for?additional?information?regarding?copyright?ownership. ??The?ASF?licenses?this?file?to?You?under?the?Apache?License,?Version?2.0 ??(the?"License");?you?may?not?use?this?file?except?in?compliance?with ??the?License.??You?may?obtain?a?copy?of?the?License?at ??????http://www.apache.org/licenses/LICENSE-2.0 ??Unless?required?by?applicable?law?or?agreed?to?in?writing,?software ??distributed?under?the?License?is?distributed?on?an?"AS?IS"?BASIS, ??WITHOUT?WARRANTIES?OR?CONDITIONS?OF?ANY?KIND,?either?express?or?implied. ??See?the?License?for?the?specific?language?governing?permissions?and ??limitations?under?the?License. --> <tomcat-users> <!-- ??NOTE:??By?default,?no?user?is?included?in?the?"manager-gui"?role?required ??to?operate?the?"/manager/html"?web?application.??If?you?wish?to?use?this?app, ??you?must?define?such?a?user?-?the?username?and?password?are?arbitrary. --> <!-- ??NOTE:??The?sample?user?and?role?entries?below?are?wrapped?in?a?comment ??and?thus?are?ignored?when?reading?this?file.?Do?not?forget?to?remove ??<!..?..>?that?surrounds?them. --> <role?rolename="manager-gui"/> <user?username="tomcat"?password="tomcat"?roles="manager-gui"/> <!-- ??<role?rolename="tomcat"/> ??<role?rolename="role1"/> ??<user?username="tomcat"?password="tomcat"?roles="tomcat"/> ??<user?username="both"?password="tomcat"?roles="tomcat,role1"/> ??<user?username="role1"?password="tomcat"?roles="role1"/> --> </tomcat-users>
qq_韶華易逝_(tái)1
<role rolename="manager-gui"/><user username="tomcat" password="123" roles="manager-gui"/>
直接在tomcat-user.xml文件中的<tomcat-users></tomcat-users>之間加入上面這一句即可,這句話的意思是吧用戶名設(shè)置為tomcat,密碼設(shè)為123。
不要把<!-- -->這個(gè)符號(hào)去掉,這里是注釋,舉例說明你可以把名字密碼設(shè)置為各種類型。
Refactor易先生
鮮衣 回復(fù) Refactor易先生
我只加了一個(gè)角色manager-gui就可以訪問了,role="admin-gui"是什么意思,也是系統(tǒng)里內(nèi)置的么?@諾顏寧
xingoo
小小鳥002
非常感謝,已成功.
qq_XXIT郁_0
打開Tomcate安裝文件中的conf文件夾,之后打開tomcat-users.xml文件,在<tomcat-users></tomcat-users>的標(biāo)簽之間j加入一下代碼,此時(shí)你的用戶名和密碼是admin,這樣就可以實(shí)現(xiàn)你想要的了
無計(jì)留春住 提問者
human123
小小鳥002 回復(fù) human123
嗨糊蘿卜 回復(fù) human123
慕粉13212751343 回復(fù) 小小鳥002
舉報(bào)
Java Web入門級(jí)教程JSP,帶你輕松的學(xué)習(xí)JSP基礎(chǔ)知識(shí)
1 回答不選記住密碼然后查看用戶信息
6 回答求解tomcat后臺(tái)管理的設(shè)置
3 回答怎么進(jìn)后臺(tái)管理界面,要輸用戶名,和密碼,我咋不知道輸呢
4 回答怎么進(jìn)Tomcat后臺(tái)管理
4 回答Tomcat后臺(tái)管理登錄
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-11-23
2016-06-10
在tomcat-users.xml中配置賬號(hào)密碼后,記得重啟tomcat,修改的東西才有效
2016-04-01
為什么設(shè)置好了用戶名和密碼之后可以進(jìn)入后臺(tái),但再次重啟tomcat用戶名就登錄不上了?失效了!!! ? ? ? ? ? ? ? ?tomcat-users.xml里面也沒有了剛剛的配置!
2015-12-09
.o0.0o. ?哈哈 謝謝
2015-10-14
O(∩_∩)O非常感謝!~
2015-10-14
2015-09-13
<role rolename="manager-gui"/>
<user username="tomcat" password="123" roles="manager-gui"/>
直接在tomcat-user.xml文件中的<tomcat-users></tomcat-users>之間加入上面這一句即可,這句話的意思是吧用戶名設(shè)置為tomcat,密碼設(shè)為123。
不要把<!-- -->這個(gè)符號(hào)去掉,這里是注釋,舉例說明你可以把名字密碼設(shè)置為各種類型。
2014-12-15
我只加了一個(gè)角色manager-gui就可以訪問了,role="admin-gui"是什么意思,也是系統(tǒng)里內(nèi)置的么?@諾顏寧
2014-11-26
非常感謝,已成功.
2014-11-26
打開Tomcate安裝文件中的conf文件夾,之后打開tomcat-users.xml文件,在<tomcat-users></tomcat-users>的標(biāo)簽之間j加入一下代碼,此時(shí)你的用戶名和密碼是admin,這樣就可以實(shí)現(xiàn)你想要的了