Tomcat中的默认用户名和密码是什么? [英] What is the default username and password in Tomcat?

查看:1854
本文介绍了Tomcat中的默认用户名和密码是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了Netbeans并试图使用:(id / pass)manager / manager,admin / admin,system / password来访问服务器的管理器......它们都没有工作。

I installed Netbeans and tryed to access the server's manager using: (id/pass)manager/manager, admin/admin, system/password... None of them worked.

推荐答案

我的答案在 Windows 7 上进行了测试,安装了 NetBeans IDE 6.9.1 捆绑了Tomcat版本6.0.26。根据我的意见,该指令可以与其他tomcat版本一起使用。

My answer is tested on Windows 7 with installation of NetBeans IDE 6.9.1 which has bundled Tomcat version 6.0.26. The instruction may work with other tomcat versions according to my opinion.

如果从NetBeans IDE中的Servers面板启动 Apache Tomcat 服务器那么你应该知道NetBeans IDE用来启动Tomcat服务器的Catalina基础和配置文件保存在不同的位置。

If you are starting the Apache Tomcat server from the Servers panel in NetBeans IDE then you shall know that the Catalina base and config files used by NetBeans IDE to start the Tomcat server are kept at a different location.

了解catalina基本目录的步骤您的安装:

Steps to know the catalina base directory for your installation:


  1. 右键单击Servers面板中的 Apache Tomcat 节点,然后在上下文菜单中选择properties选项。这将打开一个名为Servers的对话框。

  2. 检查 Catalina Base 字段的目录名称,这是当前的目录找到conf / tomcat-users.xml ,您要打开并阅读它。
    (在我的情况下,它是 C:\ Users\Tushar Joshi\.netbeans\6.9\apache-tomcat-6.0.26_base

  3. 我的电脑中打开此目录,然后转到conf目录,在那里您将找到实际的 tomcat-users .xml NetBeans IDE使用的文件。 NetBeans IDE配置了一个默认密码,其中包含 username =ide和一些随机密码,如果您愿意,可以更改此用户名和密码,也可以将其用于登录

  4. 此对话框还有用户名和密码字段,这些字段填充了这些默认用户名和密码, NetBeans IDE 还允许您通过右键单击打开管理器应用程序服务器面板中 Apache Tomcat 节点下的管理器节点

  5. NetBeans IDE 的唯一问题是它是否尝试打开URL http:// localhost:8084 / manager / ,应为 http:// localhost:8084 / manager / html 现在

  1. Right click on the Apache Tomcat node in Servers panel and choose properties option in the context menu. This will open a dialog box named Servers.
  2. Check the directory name of the field Catalina Base, this is that directory where the current conf/tomcat-users.xml is located and which you want to open and read.
    (In my case it is C:\Users\Tushar Joshi\.netbeans\6.9\apache-tomcat-6.0.26_base )
  3. Open this directory in My Computer and go to the conf directory where you will find the actual tomcat-users.xml file used by NetBeans IDE. NetBeans IDE comes configured with one default password with username="ide" and some random password, you may change this username and password if you want or use it for your login also
  4. This dialog box also have username and password field which are populated with these default username and password and NetBeans IDE also offers you to open the manager application by right clicking on the manager node under the Apache Tomcat node in Servers panel
  5. The only problem with the NetBeans IDE is it tries to open the URL http://localhost:8084/manager/ which shall be http://localhost:8084/manager/html now

这篇关于Tomcat中的默认用户名和密码是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆