tomcat7.0.11managerapphostmana-查字典问答网
分类选择

来自顾娟娟的问题

  tomcat7.0.11managerapphostmanager访问错误密码确保无误401UnauthorizedYouarenotauthorizedtoviewthispage.Ifyouhavenotchangedanyconfigurationfiles,pleaseexaminethefileconf/tomcat-users.xmlinyourinstallation.Thatfi

  tomcat7.0.11managerapphostmanager访问错误密码确保无误

  401Unauthorized

  Youarenotauthorizedtoviewthispage.Ifyouhavenotchangedanyconfigurationfiles,pleaseexaminethefileconf/tomcat-users.xmlinyourinstallation.Thatfilemustcontainthecredentialstoletyouusethiswebapp.

  Forexample,toaddthemanager-guiroletoausernamedtomcatwithapasswordofs3cret,addthefollowingtotheconfigfilelistedabove.

  NotethatforTomcat7onwards,therolesrequiredtousethemanagerapplicationwerechangedfromthesinglemanagerroletothefollowingfourroles.Youwillneedtoassigntherole(s)requiredforthefunctionalityyouwishtoaccess.

  •manager-gui-allowsaccesstotheHTMLGUIandthestatuspages

  •manager-script-allowsaccesstothetextinterfaceandthestatuspages

  •manager-jmx-allowsaccesstotheJMXproxyandthestatuspages

  •manager-status-allowsaccesstothestatuspagesonly

  TheHTMLinterfaceisprotectedagainstCSRFbutthetextandJMXinterfacesarenot.TomaintaintheCSRFprotection:

  •Userswiththemanager-guiroleshouldnotbegrantedeitherthemanager-scriptormanager-jmxroles.

  •Ifthetextorjmxinterfacesareaccessedthroughabrowser(e.g.fortestingsincetheseinterfacesareintendedfortoolsnothumans)thenthebrowsermustbeclosedafterwardstoterminatethesession.

  Formoreinformation-pleaseseetheManagerAppHOW-TO.

1回答
2020-08-06 12:04
我要回答
请先登录
黄治国

  照我的复制到conf/tomcat-users.xml目录下就好,那段代码要去掉注释

  xmlversion='1.0'encoding='utf-8'?>

2020-08-06 12:05:55

最新问答

推荐文章

猜你喜欢

附近的人在看

推荐阅读

拓展阅读

  • 大家都在看
  • 小编推荐
  • 猜你喜欢
  •