Vmware >>虚拟机>>设置>>选项>>共享文件夹
添加需要在windows共享的目录
yum -y install open-vmware-tools
vmware-hgfsclient
mkdir /data
mkdir /data/www
mount -t vmhgfs .host:/www /data/www
如果报错…执行下面
/usr/bin/vmhgfs-fuse .host:/www /data/www -o subtype=vmhgfs-fuse,allow_other
ll /data/www
共享已完成 windows D:\www -> Linux /data/www
在/etc/fstab中最后一行补上:
.host:/www /data/www fuse.vmhgfs-fuse allow_other,defaults 0 0
ll /data/www 共享已生效