您的位置:首页 > 运维架构 > Tomcat

tomcat在ubuntu上的默认目录

2014-01-15 16:40 246 查看


Tomcat 6 Directory Locations on Ubuntu Server 11.04

I started playing around with Ubuntu Server on a locally created virtualbox virtual machine today and used aptitude to install tomcat 6.0.28. Being used to the implementation one downloads directly from the Apache
Software Foundation, quite a few minutes were spent figuring out where files were placed. Below are the locations for folks spending time searching the web to find out things like where the webapps directory is on Ubuntu Server 11.04 or where the tomcat6
access logs might be located.
Default Installation Paths
Logs: /var/log/tomcat6
Binaries and Libs: /usr/share/tomcat6 (although libs are symlinked to /usr/share/java and some jars inside the bin directory get symlinked to /usr/share/java as well)
System start/stop/status script: /etc/init.d/tomcat6.
CATALINA_HOME: /usr/share/tomcat6
CATALINA_BASE: /var/lib/tomcat6
The default webapps directory location is under /var/lib/tomcat6/
Configuration files are under /etc/tomcat6/
I haven't given it a try yet but I prefer storing java options inside a setenv.sh script but the /etc/init.d/tomcat6 doesn't have any reference to setenv.sh like /usr/share/tomcat6/bin/catalina.sh does, so it will
be interesting to see whether enabling jmx via setenv.sh will work or if I'll need to modify /etc/init.d/tomcat6.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: