tomcat在浏览器输入用户名和密码后报错Tomcat Manager App--403 Access Denied You are not authorized to view this page
报错截图:Tomcat Manager App--403 Access Denied You are not authorized to view this page
解决办法:
1.关闭Tomcat(安装目录下bin文件下shutdown批处理文件)
2.找到安装目录下conf文件夹tomcat-users.xml文件
3.在xml文件<tomcat-users></tomcat-user>标签中添加以下配置信息
<role rolename="manager"/>
<role rolename="manager-gui"/>
<role rolename="admin"/>
<role rolename="admin-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<user username="admin" password="ma" roles="admin-gui,admin,manager-gui,manager,manager-script,manager-jmx,manager-status"/>
username、password属性可自行修改
4.修改完成后保存修改,并重新启动tomcat即可。
---------------------
作者:Zhiyuan_Ma
来源:CSDN
原文:https://blog.csdn.net/zhiyuan_ma/article/details/54708667
版权声明:本文为博主原创文章,转载请附上博文链接!