有没有办法将tomcat的conf文件夹位置改为bin旁边以外的位置?
原件:
Tomcat - bin
conf
temp
lib
webapp
FolderABC -期望值:
Tomcat - bin
temp
webapp
FolderABC -
- conf -- server.xml
-- other files发布于 2013-05-16 15:56:50
我认为你只有一种可能在不打tomcat补丁的情况下做这样的事情:
使用符号链接将conf目录重定向到您选择的目录:
如果你使用linux/macos,这样的东西应该可以工作(没有太多的windows经验,对不起)
mv conf FolderABC/conf
ln -s FolderABC/conf conf下面是我的fedora核心系统中的/usr/share/tomcat6清单:
drwxr-xr-x. 2 root root 4096 May 16 09:51 bin
lrwxrwxrwx. 1 root tomcat 12 May 16 09:51 conf -> /etc/tomcat6
lrwxrwxrwx. 1 root tomcat 23 May 16 09:51 lib -> /usr/share/java/tomcat6
lrwxrwxrwx. 1 root tomcat 16 May 16 09:51 logs -> /var/log/tomcat6
lrwxrwxrwx. 1 root tomcat 23 May 16 09:51 temp -> /var/cache/tomcat6/temp
lrwxrwxrwx. 1 root tomcat 24 May 16 09:51 webapps -> /var/lib/tomcat6/webapps
lrwxrwxrwx. 1 root tomcat 23 May 16 09:51 work -> /var/cache/tomcat6/workhttps://stackoverflow.com/questions/16579836
复制相似问题