【发布时间】:2019-06-06 07:41:45
【问题描述】:
我在 VMware 上创建了一个共享文件夹,它安装在我的 ubuntu 虚拟机上的 /mnt/hgfs/shared-folder 中。
相反,我想将它挂载到 /path/to/my/web/directory/
我怎样才能做到这一点?
【问题讨论】:
我在 VMware 上创建了一个共享文件夹,它安装在我的 ubuntu 虚拟机上的 /mnt/hgfs/shared-folder 中。
相反,我想将它挂载到 /path/to/my/web/directory/
我怎样才能做到这一点?
【问题讨论】:
假设主机存在(即用VMware设置共享文件夹后),使用此命令挂载主机共享文件夹:
vmhgfs-fuse .host:/shared-folder /path/to/my/web/directory/
使用此命令卸载默认挂载点:
sudo umount /mnt/hgfs
【讨论】:
/etc/init.d/vmware-tools中有一个名为vmhgfs_mnt的变量
vmhgfs_mnt="/mnt/hgfs"
您可以将/mnt/hgfs 更改为/path/to/my/web/directory。
【讨论】: