整体搭建
yum install nfs-utils -y
服务端的搭建
/root/lijx/new_nfs 192.168.10.0/24(rw,sync,no_subtree_check,no_root_squash)
systemctl restart rpcbind.service
systemctl restart nfs.service
chkconfig nfs on
客户端
showmount -e "192.168.10.13"
Export list for 192.168.10.13:
/root/lijx/new_nfs 192.168.10.0/24
mount -o rw -t nfs 192.168.10.13:/root/lijx/new_nfs /lijx/nfs
查看nas共享情况
mount | grep nfs
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
192.168.10.13:/root/lijx/new_nfs on /lijx/nfs type nfs4 (rw,relatime,vers=4.1,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.10.14,local_lock=none,addr=192.168.10.13)