当前位置:首页 > 开发 > 系统架构 > Tomcat > 正文

tomcat 7 开启服务器管理和应用管理的配置

发表于: 2013-12-20   作者:bsr1983   来源:转载   浏览次数:
摘要: 修改tomcat目录下的conf文件夹中的tomcat-users.xml如下 <?xml version='1.0' encoding='utf-8'?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.

修改tomcat目录下的conf文件夹中的tomcat-users.xml如下

<?xml version='1.0' encoding='utf-8'?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<tomcat-users>
<!--
  NOTE:  By default, no user is included in the "manager-gui" role required
  to operate the "/manager/html" web application.  If you wish to use this app,
  you must define such a user - the username and password are arbitrary.
-->
<!--
  NOTE:  The sample user and role entries below are wrapped in a comment
  and thus are ignored when reading this file. Do not forget to remove
  <!.. ..> that surrounds them.
-->
<!--
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
-->
  <role rolename="admin-gui"/>
  <role rolename="manager-gui"/>
  <user username="admin" password="admin" roles="admin-gui,manager-gui"/> 
</tomcat-users>

 

tomcat 7 开启服务器管理和应用管理的配置

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

编辑推荐
启动tomcat,进入 http://localhost:8080/,会看到如下界面: 右边的三个按钮,分别是进入服务器状
1. 搭建环境 Apache Tomcat 7.x JDK 1.6+ Perl 5.2+ (awstats是使用perl开发的) Linux (自带Perl环
本文档基于Oracle官方文档Oracle WebLogic Server 12c: Configuring and Using Node Manager,在此
接下来介绍一下在Tomcat中JMX的运用 1. JMX介绍 JMX(Java Management Extensions,即Java管理扩展
作者:Jason S.H.Chen 怎样调整JVM参数让系统在特定硬件配置下达到最优化的性能。 通过上篇SUN JVM
作者:Jason S.H.Chen 名词解释: JVM(Java Virtual Machine):Java虚拟机,所有的Java程序都在Ja
作者:Jason S.H.Chen 名词解释: JVM(Java Virtual Machine):Java虚拟机,所有的Java程序都在Ja
作者:Jason S.H.Chen 名词解释: JVM(Java Virtual Machine):Java虚拟机,所有的Java程序都在Ja
作者:Jason S.H.Chen 名词解释: JVM(Java Virtual Machine):Java虚拟机,所有的Java程序都在Ja
作者:Jason S.H.Chen 名词解释: JVM(Java Virtual Machine):Java虚拟机,所有的Java程序都在Ja
版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号