Java 在netbeans中添加tomcat服务器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2037675/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Add tomcat server in netbeans
提问by ajsie
I am using netbeans
and when I create a new web application project I click the "Add" to add a server cause in a tutorial they are using tomcat
and not glassfish
.
我正在使用netbeans
,当我创建一个新的 Web 应用程序项目时,我单击“添加”以在他们正在使用的教程中添加服务器原因,tomcat
而不是glassfish
.
I then choose Tomcat 6.0 from the list and the next page is displayed where I have to input
然后我从列表中选择 Tomcat 6.0 并显示下一页我必须输入的地方
Server Location
Username
Password
I don't get this part.
我不明白这部分。
What location do they mean? And what username and password?
它们是什么位置?什么用户名和密码?
采纳答案by Carl Smotricz
With Server Location
they probably mean the root directory of the Tomcat installation, sometimes also known as CATALINA_HOME
.
随着Server Location
他们大概的意思Tomcat安装的根目录下,有时也被称为CATALINA_HOME
。
There's a file in Tomcat's conf
directory called tomcat-users.xml
. The Tomcat documentation tells you to add a user ID and password to this file so you can administer Tomcat. So those would need to be entered in NetBeans then.
Tomcat 的conf
目录中有一个名为tomcat-users.xml
. Tomcat 文档告诉您向该文件添加用户 ID 和密码,以便您可以管理 Tomcat。所以那些需要在 NetBeans 中输入。
回答by vkraemer
Carl's answer is right, but there is a wiki page with instruction on how to register an existing Tomcat installation with NetBeansthat is a bit more complete.
Carl 的回答是正确的,但有一个wiki 页面,其中包含有关如何使用 NetBeans 注册现有 Tomcat 安装的说明,该页面更完整一些。
Also, the IDE will add the values of user name and password to the tomcat-users.xml for you if the checkbox with the label 'Create user if it does not exist' is selected (and you have write access to the tomcat-users.xml file).
此外,如果选中带有标签“如果不存在则创建用户”的复选框(并且您对 tomcat-users 具有写访问权限),IDE 将为您添加用户名和密码的值.xml 文件)。