简易配置 NFS
服务端配置:
首先mkdir /nfstest
[[email protected] /root]
#cd /etc/exports.d/
[[email protected] /etc/exports.d]
#ls
nfstest.exports
[[email protected] /etc/exports.d]
#cat nfstest.exports
/nfstest 10.10.150.*(sync,rw) 同步。读写
[[email protected] /etc/exports.d]
服务端查看创建的挂载目录
[[email protected] /etc/exports.d]
#showmount -e 10.10.1.249
Export list for 10.10.1.249:
/nfstest 10.10.150.*
/opt/iso 10.10.150.*
注意:有防火墙要把防火墙打开(我的防火墙是关闭的)
全部配置好 要把服务start起来
客户端挂载信息
在/etc/fstab 写入