Linux学习笔记 9(NFS服务器)
服务器
1.安装NFS服务器
yum install nfs* portmap -y
2.配置NFS服务器
vi /etc/exports
/home/ 192.168.33.11(rw,sync,no_hide,no_all_squash)
3.启动NFS
/etc/init.d/nfs restart
期间报错:exportfs: /etc/exports unknown keyword “no_hide”
由此可知,no_hide参数报错
解决方案
删除no_hide参数
/home/ 192.168.33.11(rw,sync,no_all_squash)
最后再次重启nfs即可
/etc/init.d/nfs restart
客户机
Linux系统:
Linux系统使用NFS需要挂载nfs文件系统,挂载吗,命令为:
mount –t nfs 192.168.33.10:/home/ /mnt
如此便成功搭建好nfs服务器了
还没有评论,来说两句吧...