ubuntu下通过apt-get install tomcat7方式安装的tomcat目录分布如下,做个记录:
user@myserver:/var/lib/tomcat7$ ls -lt
total 16
drwxrwxr-x 9 tomcat7 tomcat7 4096 11鏈? 3 10:11 webapps
drwxr-xr-x 3 tomcat7 tomcat7 4096 11鏈? 3 09:18 common
drwxr-xr-x 3 tomcat7 tomcat7 4096 11鏈? 3 09:18 server
drwxr-xr-x 3 tomcat7 tomcat7 4096 11鏈? 3 09:18 shared
lrwxrwxrwx 1 root root 12 6鏈?20 05:22 conf -> /etc/tomcat7
lrwxrwxrwx 1 root root 17 6鏈?20 05:22 logs -> ../../log/tomcat7
lrwxrwxrwx 1 root root 19 6鏈?20 05:22 work -> ../../cache/tomcat7
user@myserver:/usr/share/tomcat7$ ls -lt
total 24
drwxr-xr-x 2 root root 4096 11鏈? 3 09:17 bin
drwxr-xr-x 2 root root 4096 11鏈? 3 09:17 lib
-rw-r--r-- 1 root root 39 2鏈?21 2014 defaults.md5sum
-rw-r--r-- 1 root root 2030 2鏈?21 2014 defaults.template
-rw-r--r-- 1 root root 53 2鏈?21 2014 logrotate.md5sum
-rw-r--r-- 1 root root 118 2鏈?21 2014 logrotate.template