Linux挂载(含VM+Windows+Linux共享)

来源:互联网 发布:淘宝网店上架 编辑:程序博客网 时间:2024/06/11 14:20

一,Linux挂载:

vim /etc/rc.d/rc.local       //开机自启动的加载文件vmware-hgfsclient (查看共享文件夹)mount -t vmhgfs .host:/本机的目录    /虚拟机上的目录例如:mount -t vmhgfs  .host:/items  /213/21321网卡:/etc/sysconfig/network-scripts/ifcfg-eth0/etc/sysconfig/network/etc/resolv.conf------------------------------------------------------------------共享文件:http://jingyan.baidu.com/article/ff411625b66a1912e5823759.html-----------------------------------------vmware-hgfsclient (查看共享文件夹)mount  -t vmhgfs .host:/shared   /mnt/hgfsshared是上面找到的共享文件夹名字)报错 no such device解决办法:/usr/bin/vmware-config-tools.pl---------------------------------------------linux目录的深度:E:/wamp/wamp64/www/WorkingSpace/itemswindows目录:E:\wamp\wamp64\www\WorkingSpace\items
二,Linux下通过VM,使得Windows与Linux共享文件(文件在Windows上)

vim /etc/rc.d/rc.local       //开机自启动的加载文件

vmware-hgfsclient (查看共享文件夹)

mount -t vmhgfs .host:/items /data/htdocs

---------------------------------------------------------

http://ed.pop-fashion.com/editor/  

/etc/init.d/nginx  restart
/etc/init.d/apache  restart


-------------------------------------------------------------


vmware-hgfsclient (查看共享文件夹)

mount -t vmhgfs .host:/本机的目录    /虚拟机上的目录(

mount -t vmhgfs  .host:/items  /1321332
网卡:
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network
/etc/resolv.conf

-----------------------------------------------------------------

一个生成缓存文件的脚本:

/usr/local/webserver/php/bin/php /13313333333.php

------------------------------------------------------------------

开启网卡

vi  /etc/sysconfig/network-scripts/ifcfg-eth0

重启network服务,使网卡生效

service network restart








原创粉丝点击