ln -s   源文件路径           引用路径(快捷方式)
ln -s  /a/commonFiles/1   /b/commonFiles/2

 在实际应用当中例:


linux 软链接
 

当然还需要tomcat支持

[[email protected] conf]# cd /mnt/tomcat-8080/conf/

[[email protected] conf]# vi context.xml

加上如下即可

<Context path="/myApp" allowLinking="true">

相关文章:

  • 2021-04-22
  • 2021-05-10
  • 2021-11-07
猜你喜欢
  • 2021-10-31
  • 2022-12-23
  • 2021-08-06
  • 2022-12-23
  • 2021-04-04
  • 2021-08-07
  • 2021-10-23
相关资源
相似解决方案