【问题标题】:linux - create a folder shortcutlinux - 创建文件夹快捷方式
【发布时间】:2016-07-14 00:47:42
【问题描述】:

在 html 目录中我有 2 个域,

example1.com
example2.com

在它们中都有一个名为 files 的文件夹

example1.com/files
example2.com/files

我在这些文件夹中添加了相同的视频文件,但我的磁盘已满(因为我添加了两次相同的视频)

那么有没有办法创建一个快捷方式示例我将文件添加到
html/example1.com/files 并且 html/example2.com/files 将使用 example1 中的这些文件

我试过这个命令

ln -s /html/example1.com/files /html/example2.com/files

但如果我访问 example2.com/files/video.mp4 会出现此错误

Forbidden
You don't have permission to access /services/tmp/1.html on this server.
Apache/2.2.15 (CentOS) Server at example2.com Port 80

有没有其他命令可以做到这一点

【问题讨论】:

    标签: linux apache unix centos


    【解决方案1】:

    有一个简单的解决方案,只需运行此命令

    mount --bind /html/example1.com/files /html/example2.com/files
    

    【讨论】:

      猜你喜欢
      • 2016-05-15
      • 1970-01-01
      • 2012-01-19
      • 2012-10-12
      • 2015-04-27
      • 1970-01-01
      • 1970-01-01
      • 2011-04-29
      • 1970-01-01
      相关资源
      最近更新 更多