davidgu

tomcat8.5管理员默认只能在安装tomcat的机器上访问,如果想在其他机器上访问,则需要进行配置修改

  1. 添加用户和权限(<tomcat>\conf\tomcat-users.xml):

    <role rolename="manager-gui"/>

    <role rolename="admin-gui"/>

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

  2. 修改tomcat管理功能配置文件(<tomcat>/webapps/manager/META-INF/context.xml),注释掉地址限制:

    <Context antiResourceLocking="false" privileged="true" >

        <Valve className="org.apache.catalina.valves.RemoteAddrValve"

             allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />

    </Context>

    改为

    <Context antiResourceLocking="false" privileged="true" >

        <!--

        <Valve className="org.apache.catalina.valves.RemoteAddrValve"

             allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />

        -->

    </Context>

  3. 重启服务器,刷新访问的浏览器登录即可访问:

    http://网址/manager/html

     

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 2021-11-22
  • 2022-01-07
  • 2022-12-23
  • 2021-10-18
  • 2021-10-07
猜你喜欢
  • 2021-11-22
  • 2021-11-22
  • 2022-12-23
  • 2021-07-27
  • 2021-12-17
  • 2021-09-30
  • 2021-07-31
相关资源
相似解决方案