Loading... <p><a class="channel_keylink" href="http://windows.chinaitlab.com/" target="_blank"><font color="#0000ff">Windows</font></a>和Linux间有很多文件共享的方式,这里我总结了一下。假设你的Host计算机是<a class="channel_keylink" href="http://windows.chinaitlab.com/" target="_blank"><font color="#0000ff">Windows</font></a>,Guest是Linux哈。</p> <p> <strong>1.利用Samba</strong></p> <p> 这是我用得最多的方式</p> <p> <strong>2.在Linux下配置Apahce</strong></p> <p> 在Linux下配置Apahce,然后在Windows下通过www方式把Linux下的文件<a class="channel_keylink" href="http://download.chinaitlab.com/" target="_blank"><font color="#0000ff">下载</font></a>下来。这种方式只能把Linux的文件传到Windows,不能把Windows的文件传到Linux.</p> <p> <strong>3.在Linux下配置Ftp</strong></p> <p> 用vsftp或者wu-ftp都可以,配置成上传权限的,然后Windows和Linux就可以相互共享文件了。</p> <p> <strong>4.Windows下配置WWW服务</strong></p> <p> 用IIS,Apache或者其它的都可以。如果你的Linux只有命令行的话,就用wget命令吧,可以很方便地<a class="channel_keylink" href="http://download.chinaitlab.com/" target="_blank"><font color="#0000ff">下载</font></a>文件。</p> <p> <strong>5.Windows下配置Ftp</strong></p> <p> 用serv-u比较简单</p> <p> <strong>6.利用Windows的文件共享功能</strong></p> <p> 比如说你的Windows的IP为192.168.0.1,共享了一个叫share的目录,那么就可以用下列命令</p> <p> mount -t smbfs //192.168.0.1/share /mnt -o username=user%passwd</p> <p> 或者smbmount //192.168.0.1/share /mnt -o username=user%passwd(用这个命令要安samba哦)</p> <p> <strong>7.用vmware tools工具</strong></p> <p> SharedFolders是Vmware4 的一个新功能,更加方便了在Host,Guest操作系统间共享文件。但是使用前</p> <p> 要安装vmware tools.</p> <p> 点击setting->vmware tools install</p> <p> mount /dev/cdrom /mnt/cdrom</p> <p> cd /mnt/cdrom</p> <p> 里面有一个vmware tools的tar包,解开执行vmware-tools-install.pl脚本,一路回车,一般没有问题。</p> <p> 点击Edit->Virtual Machine Settigns->Option->SharedFolders->Add,选定要共享的文件夹并给这个文件夹命名,下一步。选定“Enable</p> <p> thisshare”, 确定以后,vmware会把这个文件夹自动mount到/mnt/hgfs目录下。</p> <p> <strong>8.直接挂接物理硬盘或者硬盘分区</strong></p> <p> 不过vmware也是支持直接mount Host机器的磁盘,方法是在虚机设置里新建磁盘,类型选“Usephysicaldisk(foradvanced users)”,再选定磁盘和分区就可以。但是这样的操作可能会引会文件系统的不一致,导致错误,不推荐使用。</p> <p> <strong>9.用ISO文件</strong></p> <p> 虚拟机里面的光驱可以有物理光驱和ISO文件两种,我们可以把我们的文件重点制件成ISO文件(用WinIso),然后在Linux中作为CDROM挂接。</p> Last modification:October 6, 2023 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 如果觉得我的文章对你有用,请随意赞赏
2 comments
辛苦了,博主
爱好撒!!