linux文件共享可以有多种方式:samba,nfs,ftp等等
nfs在linux之间效率高些:
function nfs(){share_folder="/data1 192.168.0.239(rw,sync,no_root_squash)"yum install nfs-utils rpcbindecho $share_folder >> /etc/exportsexportfs -rvshowmount -e 127.0.0.1# 客户端使用# mount -t nfs 192.168.122.31:/data1 /data1 }