Vagrant 中的共享文件夹和同步文件夹有什么区别? [英] What is the difference between shared folder and synced folder in Vagrant?
问题描述
在浏览 Vagrant 教程时,我看到了在主机和来宾计算机之间共享文件夹的两个选项 - 共享文件夹和同步文件夹.它们有什么区别?
While going through Vagrant tutorials, I have seen two options for sharing folders between host and guest machines - shared folders and synced folders. What are the difference between them?
或者,在 Vagrant 2 中,同步文件夹是共享文件夹的新名称吗?
Or, is synced folder the new name for shared folder, in Vagrant 2?
推荐答案
Shared Folders
更特定于 VirtualBox (vboxsf
),并且随着文件数量的增长存在已知的性能问题.
Shared Folders
is more VirtualBox specific (vboxsf
) and have known performance issues as number of files grows.
Vagrant v2(对于 vagrant 1.1.x 和 1.2.x)docs 使用更多通用名称同步文件夹,包括默认的 vboxsf
和 NFS.
Vagrant v2 (For vagrant 1.1.x and 1.2.x) docs use a more generic name Synced Folder, which includes the default vboxsf
and NFS.
除了 vboxsf
和 NFS,如果您的主机运行 Linux,sshfs
也值得研究.
In addition to vboxsf
and NFS, sshfs
is also worth looking into if your host is running Linux.
这篇关于Vagrant 中的共享文件夹和同步文件夹有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!