须要组件yum install nfs-utilsvim
服务端:centos
[root@centos7 ~]#vim /etc/exports /data/cmatrix-1.2a (rw,sync,no_root_squash) service nfs start启动服务 chkconfig nfs on自启动 showmount -e localhost显示可挂载目录 改变共享目录后必须重启service nfs restart
客户端:bash
安装nfs组件ide
mount -t nfs 192.168.35.128:/data/cmatrix-1.2a /data/share 写入/etc/fstab文件 192.168.35.128:/data/cmatrix-1.2a /data/share nfs defaults 0 0
win7客户端centos7
打开nfs功能,以后cmd,或者网页输入\\192.168.35.128\data\share mount \\192.168.35.128\data\share x:\