Fork me on GitHub

远程使用tomcat8的首页的管理工具

1.在%Tomcat_Home%/conf/Catalina/localhost中新建manager.xml,内容如下

<Context privileged="true" antiResourceLocking="false" 
         docBase="${catalina.home}/webapps/manager">
    <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="^.*$" />
</Context>

2.在%Tomcat_Home%/conf/tomcat-users.xml中添加

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

 

posted @ 2018-07-05 17:22  秋夜雨巷  阅读(378)  评论(0编辑  收藏  举报