码迷,mamicode.com
首页 > 其他好文 > 详细

tomcat报警告 An attempt was made to authenticate the locked user

时间:2015-05-02 09:39:22      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:tomcat

有好多这样的警报怪怪的,一分钟抛一次,大概抛了10分钟,停止

Anattempt was made to authenticate the locked user "root"Anattempt was made to authenticate the locked user "root"

An attempt was made to authenticate the lockeduser "theshadow007"

真的就是007!!

唉,无语了,

也不知解没解决,反正用以下办法就不再报警了

在apache-tomcat-8.0.21\conf\tomcat-users.xml\server.xml里面会用到 tomcat-users.xml

技术分享

而原来的apache-tomcat-8.0.21\conf\tomcat-users.xml是这样的

技术分享

没错都是注释,把注释放开还不够,还是会抛警告,再顺便把tomcat的8080网络的host manager app配置了吧(我的tomcat是8.0.21版的)

<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"/>
  <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="user" password="user" roles="manager-gui,manager-script,manager-jmx,manager-status,admin-script,admin-gui"/>

保存重启服务器,就没有再抛警告

而且配置完后,在localhost/8080的host manager可以用user和user登录管理app

tomcat报警告 An attempt was made to authenticate the locked user

标签:tomcat

原文地址:http://blog.csdn.net/unflynaomi/article/details/45424209

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!