從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了。

(本人只是淺薄。希望對你有所幫助)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章