一、server (11.11.11.11)
1.apt-get install rpcbind nfs-common nfs-kernel-server
2.mkdir /nfssrv
3.vi /etc/exports
/nfssrv *(rw,sync,no_subtree_check,no_root_squash)
reboot
二、client
1.apt-get install rpcbind nfs-common nfs-kernel-server
2.mkdir -p /mnt/client
3.mkdir /mnt/nfsclient
4.mount -t nfs
11.11.11.11:/nfssrv
/mnt/nfsclient
三、查看是否挂载成功
df -h
11.11.11.11:/
nfssrv 27G 7.8G 18G 31%
/mnt/nfsclient
阅读(3552) | 评论(0) | 转发(0) |