现在的位置: 首页 > 综合 > 正文

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

2012年09月27日 ⁄ 综合 ⁄ 共 1620字 ⁄ 字号 评论关闭

 

原来打开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了。

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

【上篇】
【下篇】

抱歉!评论已关闭.