Tomcat 配置2 tomcat-users.xml
2017-10-10 21:55
204 查看
Tomcat的配置 Tomcat的主要配置文件有3个,分别是:
Tomcat-users.xml、
web.xml
server.xml。配置Tomcat-users.xml 该文件包含了所有Tomcat服务器的注册用户,其中有role(角色)、user(用户)两种信息。
下面列举出这个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 以上是apache版本许可协议(感谢apache提供开源软件) 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><!-- NOTE: By default, no user is included in the "manager-gui" role required to operate the "/manager/html" web application. If you wish to use this app, you must define such a user - the username and password are arbitrary.--><!-- NOTE: The sample user and role entries below are wrapped in a comment and thus are ignored when reading this file. Do not forget to remove <!.. ..> that surrounds them.--><!-- <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"/>--><role rolename="tomcat"/> <role rolename="role1"/> <role rolename="manager"/> <role rolename="admin"/> <role rolename="admin-gui"/> <role rolename="admin-script"/> <role rolename="manager-gui"/> <role rolename="manager-script"/> <role rolename="manager-jmx"/> <role rolename="manager-status"/> <user username="admin" password="network" roles="admin,manager,role1,tomcat,admin-gui,admin-script,manager-gui,manager-script,manager-jmx,manager-status" /> </tomcat-users>
Tomcat-users.xml、
web.xml
server.xml。配置Tomcat-users.xml 该文件包含了所有Tomcat服务器的注册用户,其中有role(角色)、user(用户)两种信息。
下面列举出这个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 以上是apache版本许可协议(感谢apache提供开源软件) 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><!-- NOTE: By default, no user is included in the "manager-gui" role required to operate the "/manager/html" web application. If you wish to use this app, you must define such a user - the username and password are arbitrary.--><!-- NOTE: The sample user and role entries below are wrapped in a comment and thus are ignored when reading this file. Do not forget to remove <!.. ..> that surrounds them.--><!-- <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"/>--><role rolename="tomcat"/> <role rolename="role1"/> <role rolename="manager"/> <role rolename="admin"/> <role rolename="admin-gui"/> <role rolename="admin-script"/> <role rolename="manager-gui"/> <role rolename="manager-script"/> <role rolename="manager-jmx"/> <role rolename="manager-status"/> <user username="admin" password="network" roles="admin,manager,role1,tomcat,admin-gui,admin-script,manager-gui,manager-script,manager-jmx,manager-status" /> </tomcat-users>
相关文章推荐
- tomcat6.0的tomcat-users.xml配置文件
- Tomcat8配置tomcat-users.xml配置
- tomcat6.0的tomcat-users.xml配置文件 (用户权限)
- tomcat6.0的tomcat-users.xml配置文件
- 进入tomcat的app manager界面需要配置的tomcat-users.xml
- linux tomcat的tomcat-users.xml配置管理用户
- Tomcat tomcat-users.xml 配置用户
- 关于tomcat 中的 tomcat-users.xml 配置不生效原因
- tomcat 中的 tomcat-users.xml 配置不生效原因 + tomcat8以上管理页面提示403问题解决方案
- tomcat-users.xml配置Manager登陆用户
- tomcat监控配置tomcat-users.xml
- tomcat8配置tomcat-users.xml不生效
- tomcat 6.0 tomcat-users.xml 配置
- tomcat配置tomcat-users.xml
- tomcat-users.xml 配置不生效原因
- 关于tomcat 中的 tomcat-users.xml 配置不生效原因
- Tomcat8.x登陆问题,tomcat-users.xml配置问题
- 配置tomcat-users.xml
- tomcat-users.xml 配置(转的)
- tomcat tomcat-users.xml 配置使用