首页 > Web开发 > 详细

cnetos7 64位系统 nfs服务安装与配置

时间:2015-11-12 16:09:12      阅读:321      评论:0      收藏:0      [点我收藏+]

cetnos7下部分命令已变,例如ifconfig变更为ip addr


使用yum安装nfs

yum -y install nfs-unitls rpcbind

修改配置文档/etc/exports

初开始文档里没有任何内容,可以自行添加:

/opt/test/ 192.168.1.0/24(rw,no_root_squash,no_all_squash,sync)

使配置生效

exportfs -r

查看是否安装了nfs

rpm -qa | grep nfs rpcbind

启动nfs

service rpcbind start或者使用/bin/systemctl start rpcbind.service

service nfs start或者使用/bin/systemctl start nfs.service

chkconfig rpcbind on或者使用systemctl enable rpcbind.service

chkconfig nfs on或者使用systemctl enable nfs.service


查看挂载

showmount -e

客户端挂载

mount -t nfs 192.168.1.*:/opt/test /mnt



cnetos7 64位系统 nfs服务安装与配置

原文:http://7449553.blog.51cto.com/7439553/1712142

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!