tomcat的用户帐号权限设置
[color=green][b]tomcat-users.xml[/b][/color]
[color=green][b]server.xml[/b][/color]
path:[color=red]项目启动的名字:如http://localhost:8080/test,而不是(项目名)path可以任意取各种的名称[/color]
docBase:[color=red]项目工程的路径[/color]
root.xml
[color=green][b]tomcat-users.xml[/b][/color]
<?xml version='1.0' encoding='UTF-8'?>
<tomcat-users>
<role rolename="manager"/>
<role rolename="tomcat"/>
<role rolename="admin"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="admin" password="admin" roles="admin,manager"/>
<user username="role1" password="tomcat" roles="role1"/>
</tomcat-users>
[color=green][b]server.xml[/b][/color]
path:[color=red]项目启动的名字:如http://localhost:8080/test,而不是(项目名)path可以任意取各种的名称[/color]
docBase:[color=red]项目工程的路径[/color]
<Context path="/test" docBase="E:\workspace\项目名\WebRoot" reloadable="true"/> root.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 Manager Web App
$Id: manager.xml 565211 2007-08-13 00:09:38Z markt $
-->
<Context docBase="D:\Workspaces\xs_oa\WebRoot"
privilegied="true" antiResourceLocking="false" antiJARLocking="false">
</Context>
3699

被折叠的 条评论
为什么被折叠?



