CentOS7 NFS配置

  如果在安装Centos7时选择安装必要的开发工具选项,所以系统已经安好NFS必要的软件。

配置:

# vi /etc/exports

/home/qws/share 192.168.168.0/24 (rw,sync,all_squash)


保存

启动NFS
systemctl start nfs.service

检查是否配置好:
showmount -e

Export list for localhost.localdomain:
/home/qws/share (everyone)

可见已经配好

尝试用开发板mount,结果不行,因为有防火墙
所以要要先关闭防火墙。

在centos7以后要使用sysytemd
systemctl stop iptables.service


然后在开发版端使用:

mount -t nfs 192.168.168.99:/root/share /nfsroot -o nolock,tcp

 


成功

posted on 2014-12-03 13:53  层林尽染  阅读(544)  评论(0编辑  收藏  举报

导航