客户端
1. yum install nfs_utils
2. yum install rpcbind
3. systemctl start rpcbind #centos6.5 #service rpcbind start
4. systemctl start nfs #centos6.5 #service nfs start
5. systemctl enable rpcbind #centos6.5 #chkconfig rpcbind on
6. systemctl enablenfs-server.service #centos6.5 #chkconfignfs on 查看#chkconfig --list
7. mount -t nfs 192.111.134.1:/usr/nfsShare /usr/test
查看客户端/usr/test是否已经挂载成功
- 设置开机自动挂载
vi /etc/fstab
添加: 192.111.134.1:/usr/nfsShare /usr/test nfs defaults 0 0
其他:
关闭挂载:umount /usr/shareNFS nfs
windows挂载: mount 192.111.134.1:/usr/nfsShare X: