Tomcat中的默认用户名和密码是什么? [英] What is the default username and password in 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:
- 右键单击Servers面板中的 Apache Tomcat 节点,然后在上下文菜单中选择properties选项。这将打开一个名为Servers的对话框。
- 检查 Catalina Base 字段的目录名称,这是当前
的目录找到conf / tomcat-users.xml
,您要打开并阅读它。
(在我的情况下,它是C:\ Users\Tushar Joshi\.netbeans\6.9\apache-tomcat-6.0.26_base
) - 在
我的电脑
中打开此目录,然后转到conf目录,在那里您将找到实际的tomcat-users .xml
NetBeans IDE使用的文件。 NetBeans IDE配置了一个默认密码,其中包含username =ide
和一些随机密码,如果您愿意,可以更改此用户名和密码,也可以将其用于登录 - 此对话框还有用户名和密码字段,这些字段填充了这些默认用户名和密码, NetBeans IDE 还允许您通过右键单击打开管理器应用程序服务器面板中 Apache Tomcat 节点下的管理器节点
- NetBeans IDE 的唯一问题是它是否尝试打开URL
http:// localhost:8084 / manager /
,应为http:// localhost:8084 / manager / html
现在
- 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.
- 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 isC:\Users\Tushar Joshi\.netbeans\6.9\apache-tomcat-6.0.26_base
) - Open this directory in
My Computer
and go to the conf directory where you will find the actualtomcat-users.xml
file used by NetBeans IDE. NetBeans IDE comes configured with one default password withusername="ide"
and some random password, you may change this username and password if you want or use it for your login also - 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
- The only problem with the NetBeans IDE is it tries to open the URL
http://localhost:8084/manager/
which shall behttp://localhost:8084/manager/html
now
这篇关于Tomcat中的默认用户名和密码是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!