Where tomcat.conf is located?

耗尽温柔 提交于 2019-12-09 12:33:47

问题


I can't find it my tomcat.conf, I have looked in /etc/tomcat6, but it's not there, either in /usr/share/tomcat6.

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


回答1:


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.




回答2:


Try:

sudo updatedb
locate tomcat.conf | less



回答3:


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.




回答4:


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



回答5:


You may check that by:

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



回答6:


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



回答7:


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

/usr/local/tomcat/conf 


来源:https://stackoverflow.com/questions/1875162/where-tomcat-conf-is-located

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!