您的位置:首页 > 其它

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

2015-11-12 14:14 501 查看
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
查看是否安装了nfsrpm -qa | grep nfs rpcbind启动nfsservice rpcbind start或者使用/bin/systemctl start rpcbind.serviceservice nfs start或者使用/bin/systemctl start nfs.servicechkconfig rpcbind on或者使用systemctl enable rpcbind.servicechkconfig nfs on或者使用systemctl enable nfs.service
查看挂载
showmount -e客户端挂载mount -t nfs 192.168.1.*:/opt/test /mnt
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  nfs rpcbind systemcal