从tomcat6的页面上管理你从Myeclipse部署到tomcat的项目

 

原来打开tomcat的页面是就没在意过上面有什么功能,或者说能从上面得到什么方便。今天发现从tomcat页面上可以管理部署到tomcat的项目。

开始:

(1)首先你打开tomcat的页面后在页面的左上角(那只猫下面)有一个Administration,这个Administration下面有Status
Tomcat Manager,后面的这个就是今天要说的能管理项目的东东(从翻译的意思上也能看个大概)。点Tomcat Manager后会出现一个对话框。

(2):这个对话框里让填写“管理员名字”和“管理员密码”。我用的tomcat6里的“管理员名字”默认是“admin”。“管理员密码”默认是“”(空——没有密码)。

(3):如果你想设一个密码的话,步骤:1:打开tomcat的文件夹——》conf文件夹——》tomcat-users.xml

                                                        2:打开这个tomcat-users.xml文件(编辑方式)

                                                        3:发现

<?xml version='1.0' encoding='cp936'?>

<!--
  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>
<user name="admin" password="wang" roles="admin,manager" /><!--

  <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"/>
-->
</tomcat-users>
看红色的就行了,这里我已经设好了一个密码:“wang”。你设好你自己的密码后保存,然后把tomcat关掉,再打开然后再tomcat页面上进行上述的操作就OK了。

(本人只是浅薄。希望对你有所帮助)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值