Tomcat 7 管理员用户名和密码初始化配置
2020-05-17 20:36
162 查看
Tomcat 7 管理员用户名和密码初始化配置
步骤:
ssh连接
1、配置密码
路径:主机名:/volume1/@appstore/Tomcat7/src/conf$
2、给logs设置可改权限
路径:主机名:/volume1/@appstore/Tomcat7/src$
3、停止服务和启动服务
路径:主机名:/volume1/@appstore/Tomcat7/src/bin$
1、配置用户名和密码
路径:主机名:/volume1/@appstore/Tomcat7/src/conf$
命令:
sudo vim tomcat-users.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. --> <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. It is strongly recommended that you do NOT use one of the users in the commented out section below since they are intended for use with the examples web application. --> <!-- NOTE: The sample user and role entries below are intended for use with the examples web application. They are wrapped in a comment and thus are ignored when reading this file. If you wish to configure these users for use with the examples web application, do not forget to remove the <!.. ..> that surrounds them. You will also need to set the passwords to something appropriate. --> <role rolename="tomcat"/> <role rolename="manager"/> <role rolename="manager-script"/> <role rolename="manager-status"/> <role rolename="manager-jmx"/> <role rolename="manager-gui"/> <role rolename="admin"/> <role rolename="admin-gui"/> <user username="admin" password="admin" roles="admin,admin-gui,manager,manager-gui,manager-script,manager-status,manager-jmx"/> </tomcat-users>
2、给logs设置可改权限
路径:主机名:/volume1/@appstore/Tomcat7/src/conf$
命令:
sudo chmod a+rwx -R logs
3、停止服务和启动服务
路径:主机名:/volume1/@appstore/Tomcat7/src/conf$
停止服务命令:
./shotdown.sh
启动服务命令:
./startup.sh
启动成功:
4、错误及解决
1)catalina.out 权限拒绝写
解决方法:logs文件夹添加可写权限
2)停止命令运行出错:Tomcat may not be runing
Tomcat 服务器已停止状态,无需再次停止
相关文章推荐
- 如何配置netbeans中绑定的tomcat管理员用户名和密码
- 如何配置netbeans中绑定的tomcat管理员用户名和密码
- Tomcat 管理员,用户名,密码配置
- 如何配置netbeans中绑定的tomcat管理员用户名和密码
- 如何配置netbeans中绑定的tomcat管理员用户名和密码
- 如何配置tomcat管理员的用户名和密码
- Tomcat Manager 用户名和密码配置
- 在Netbeans下配置Tomcat manager用户名与密码
- Tomcat Manager 用户名和密码配置
- tomcat5.5下配置manager用户名密码
- phpMyAdmin 尝试连接到 MySQL 服务器,但服务器拒绝连接。您应该检查配置文件中的主机、用户名和密码,并确认这些信息与 MySQL 服务器管理员所给出的信息一致。
- netbeans中tomcat的用户名与密码配置(简易)
- 重新配置tomcat 登录时用户名和密码
- tomcat7.0用户名和密码配置
- 重新设置Tomcat7.0管理员用户名和密码
- tomcat7配置管理员帐号密码
- 设置Tomcat管理员用户名和密码
- Tomcat Manager用户名和密码配置
- git-----初始化配置添加用户名和密码
- 设置tomcat管理员的用户名和密码