标签:catalina lse cal oca admin 参考 code 修改 roles
1、修改 conf/tomcat-users.xml 文件
<role rolename="manager-gui"/> <role rolename="manager-script"/> <role rolename="admin-gui"/> <role rolename="admin-script"/> <user username="user" password="password" roles="tomcat,manager-gui,manager-script,admin-gui,admin-script"/>
启动tomcat
如果不能登录,继续下面的操作:
2
如果想要进入/manager/html页面,则新建或编辑conf/Catalina/localhost/manager.xml
如果想要进入/host-manager/html页面,则新建或编辑conf/Catalina/localhost/host-manager.xml
<?xml version="1.0" encoding="UTF-8"?> <Context privileged="true" antiResourceLocking="false" docBase="${catalina.home}/webapps/manager"> <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="^.*$" /> </Context>
3 向tomcat传war包出错:org.apache.catalina.filters.CSRF_NONCE
因为war包大小上传有限制,修改/manager/WEB-INF/web.xml
<multipart-config> <-- 尺寸最大 50MB--> <max-file-size>52428800</max-file-size> <max-request-size>52428800</max-request-size> <file-size-threshold>0<</file-size-threshold> </multipart-config>
参考:
2、向tomcat传war包出错:org.apache.catalina.filters.CSRF_NONCE
标签:catalina lse cal oca admin 参考 code 修改 roles
原文地址:https://www.cnblogs.com/wozixiaoyao/p/11692103.html