安装实用工具Web Server Administration Tool(Tomcat5.5)

Tomcat 5.5实用工具Tomcat Web Server Administration Tool运行于Web环境,通过浏览器可以非常方便地进行Tomcat服务器的配置,如图所示:

 

但是,Tomcat 5.5 以后的binary Core安装版不再提供Tomcat Web Server Administration Tool,如若要使用该实用工具,必须从http://tomcat.apache.org/下载Administration Web Application压缩包,且需要在本地进行配置。

 

 

一、下载文件apache-tomcat-5.5.27-admin.zip

 

 

二、将文件apache-tomcat-5.5.27-admin.zip解压到目录F:/Tomcat/apache-tomcat-5.5.27

apache-tomcat-5.5.27目录内容为:

 

 

到此,实用工具Tomcat Web Server Administration Tool的应用程序Administration Web Application只是存在本地,还没有被发布到Tomcat服务器中,所以通过访问http://localhost:8080/admin得到的结果如下:

Tomcat's administration web application is no longer installed by default. Download and install the "admin" package to use it.

 

现在开始Tomcat中配置Administration Web Application

 

三、将文件apache-tomcat-5.5.27/conf/Catalina/localhost/ admin.xml拷贝到Tomcat服务器所在安装目录E:/j2ee/Tomcat 5.5/conf/Catalina/localhost目录。

admin.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.

-->

<!--

    Context configuration file for the Tomcat Administration Web App

    $Id: admin.xml 565211 2007-08-13 00:09:38Z markt $

-->

<Context docBase="${catalina.home}/server/webapps/admin" privileged="true"

         antiResourceLocking="false" antiJARLocking="false">

  <!-- Uncomment this Valve to limit access to the Admin app to localhost

   for obvious security reasons. Allow may be a comma-separated list of

   hosts (or even regular expressions).

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

    allow="127.0.0.1"/>

  -->

</Context>

 

四、将apache-tomcat-5.5.27/server/webapps目录下的admin目录整个拷贝到Tomcat服务器所在安装目录E:/j2ee/Tomcat 5.5/server/webapps目录。

 

五、编辑文件E:/j2ee/Tomcat 5.5/conf/ tomcat-users.xml,为该实用工具程序添加用户zhans信息。

tomcat-users.xml具体内容:

<?xml version='1.0' encoding='utf-8'?>

<tomcat-users>

  <role rolename="tomcat"/>

  <role rolename="role1"/>

  <role rolename="manager"/>

  <role rolename="admin"/>

  <user username="tomcat" password="tomcat" roles="tomcat"/>

  <user username="role1" password="tomcat" roles="role1"/>

  <user username="both" password="tomcat" roles="tomcat,role1"/>

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

<user username="zhans" password="nice" roles="admin,manager"/>

</tomcat-users>

注意:username/password任意组合,但roles=admin”角色不可随意改动!

 

六、重启Tomcat服务器,访问URL : http://localhost:8080/admin,验证通过后,即可使用实用工具Tomcat Web Server Administration Tool

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值