tomcat.conf 位于哪里?

发布于 2024-08-13 14:42:48 字数 172 浏览 7 评论 0原文

我找不到我的 tomcat.conf,我查看了 /etc/tomcat6,但它不在那里,也不在 /usr/share/ 中tomcat6

在 Linux Ubuntu 中哪里可以找到 tomcat.conf

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.

Where can I find the tomcat.conf in Linux Ubuntu?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

梦中楼上月下 2024-08-20 14:42:48

尝试:

sudo updatedb
locate tomcat.conf | less

Try:

sudo updatedb
locate tomcat.conf | less
紫罗兰の梦幻 2024-08-20 14:42:48

默认的普通 Tomcat 安装中没有 tomcat.conf 文件。不过,您可以在 /conf 文件夹中找到多个配置文件。有关这些内容的详细信息/手册可以在 Apache Tomcat 配置参考

希望这有帮助。

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.

Hope this helps.

风吹雪碎 2024-08-20 14:42:48

tomcat.conf是Tomcat的RedHat RPM包安装的文件。请参阅这里。这实际上是管理文件中的 tomcat 配置内容而不是环境变量的好方法。

tomcat.conf is a file that the RedHat RPM package of Tomcat installs. See here. It's actually a nice way of managing tomcat config stuff in a file rather than environment variables.

终止放荡 2024-08-20 14:42:48

不确定您在寻找什么,但这里是 karmictomcat6 包的文件列表:

/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

Not sure what you're looking for but here is the filelist of the package tomcat6 on karmic:

/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
眼藏柔 2024-08-20 14:42:48

您可以通过以下方式检查:

$ dpkg -L tomcat6 tomcat6-common | grep tomcat.conf

You may check that by:

$ dpkg -L tomcat6 tomcat6-common | grep tomcat.conf
む无字情书 2024-08-20 14:42:48

tomcat-users.xml 文件位于 Tomcat 安装目录的 etc 目录中。

例如。从根目录:

cd /etc/tomcat(ENTER-YOUR-TOMCAT-VERSION-HERE)/tomcat-users.xml

在我的系统中,我安装了 Tomcat7,所以我的路径是“

/etc/tomcat7/tomcat-users.xml

The tomcat-users.xml file is located in the Tomcat install directory of the etc directory.

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"

/etc/tomcat7/tomcat-users.xml
猫九 2024-08-20 14:42:48

如果您正在运行基于 alpine 的 Docker 容器,您可以在conf.conf中找到所有配置。

/usr/local/tomcat/conf 

If you are running Docker container based on alpine all the configuration you can find inside conf.

/usr/local/tomcat/conf 
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文