Java tomcat.conf 位于何处?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1875162/
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
Where tomcat.conf is located?
提问by hkshambesh
I can't find my tomcat.conf
, I have looked in /etc/tomcat6
, but it's not there, nor is it in /usr/share/tomcat6
.
我找不到我的tomcat.conf
,我已经看过了/etc/tomcat6
,但它不在那里,也不在/usr/share/tomcat6
.
Where can I find the tomcat.conf
in Linux Ubuntu?
我在哪里可以找到tomcat.conf
Linux Ubuntu 中的 ?
采纳答案by BalusC
There is no means of a tomcat.conf
file in a default and plain vanilla Tomcat installation. You however can find several configuration files in the /conf
folder. Details/manuals about those can be found at the Apache Tomcat Configuration Reference.
tomcat.conf
在默认和普通的 Tomcat 安装中没有文件的方法。但是,您可以在/conf
文件夹中找到多个配置文件。有关这些的详细信息/手册可以在Apache Tomcat 配置参考中找到。
Hope this helps.
希望这可以帮助。
回答by dasilvj
Try:
尝试:
sudo updatedb
locate tomcat.conf | less
回答by Pascal Thivent
Not sure what you're looking for but here is the filelist of the package tomcat6on karmic:
不知道你要找的,但这里是软件包的文件列表中的tomcat6的业力:
/etc/cron.daily/tomcat6 /etc/default/tomcat6 /etc/init.d/tomcat6 /etc/tomcat6/catalina.properties /etc/tomcat6/context.xml /etc/tomcat6/logging.properties /etc/tomcat6/policy.d/01system.policy /etc/tomcat6/policy.d/02debian.policy /etc/tomcat6/policy.d/03catalina.policy /etc/tomcat6/policy.d/04webapps.policy /etc/tomcat6/policy.d/50local.policy /etc/tomcat6/server.xml /etc/tomcat6/tomcat-users.xml /etc/tomcat6/web.xml /usr/share/doc/tomcat6/changelog.Debian.gz /usr/share/doc/tomcat6/copyright /usr/share/tomcat6/webapps/default_root/META-INF/context.xml /usr/share/tomcat6/webapps/default_root/index.html /var/lib/tomcat6/conf /var/lib/tomcat6/logs /var/lib/tomcat6/work
回答by Marplesoft
回答by kenorb
You may check that by:
您可以通过以下方式检查:
$ dpkg -L tomcat6 tomcat6-common | grep tomcat.conf
回答by user3121315
The tomcat-users.xml file is located in the Tomcat install directory of the etc directory.
tomcat-users.xml 文件位于 etc 目录的 Tomcat 安装目录中。
For instance. From root:
例如。从根:
cd /etc/tomcat(ENTER-YOUR-TOMCAT-VERSION-HERE)/tomcat-users.xml
In my system I have Tomcat7 installed so my path was"
在我的系统中,我安装了 Tomcat7,所以我的路径是“
/etc/tomcat7/tomcat-users.xml
回答by Adiii
If you are running Docker container based on alpine all the configuration you can find inside conf.
如果您正在运行基于 alpine 的 Docker 容器,那么您可以在 conf 中找到所有配置。
/usr/local/tomcat/conf