tomcat错误You are not authorized to view this page

给tomcat设置密码登录后出现错误

错误代码:

401 Unauthorized

tomcat You are not authorized to view this page的错误。

解决方法:修改tomcat-users.xml文件,主要是加上<role rolename=”manager-gui”/>,也就是配置个权限。

<role rolename=”manager”/>
<role rolename=”manager-gui”/>
<user username=”admin” password=”admin” roles=”manager,manager-gui”/>





打赏

Comments are closed.


鲁ICP备18019972号-1