linux nfs共享文件

linux文件共享可以有多种方式:samba,nfs,ftp等等

nfs在linux之间效率高些:

function nfs(){
    share_folder="/data1 192.168.0.239(rw,sync,no_root_squash)"
    yum install nfs-utils rpcbind
    echo $share_folder >> /etc/exports
    exportfs -rv
    showmount -e 127.0.0.1
    
    # 客户端使用
    # mount -t nfs 192.168.122.31:/data1 /data1
}
原文地址:https://www.cnblogs.com/trying/p/3605192.html