首页 > 其他 > 详细

nfs

时间:2019-07-03 19:00:49      阅读:84      评论:0      收藏:0      [点我收藏+]

nfs的服务器

yum install -y rpc-bind nfs-utils

systemctl start rpcbind

mkdir /public

vi /etc/exports

[root@nn01 /]# cat /etc/exports
/public 172.16.0.0/24(ro,no_root_squash,no_all_squash)


systemctl restart nfs-server
systemctl enable nfs-server
showmount -e
mount -t nfs 172.16.0.9:/public /mnt
df -h

 

客户端
yum -y install nfs-utils
systemctl restart nfs-server
mount -t nfs 172.16.0.9:/public /mnt
df -h

开机自动挂载
客户端操作
mkdir /mnt/nfs
cat /etc/fstab
172.16.0.9:/public /mnt/nfs nfs defaults,_netdev 0 0
mount -a

 

 

df -h

nfs

原文:https://www.cnblogs.com/heping1314/p/11128061.html

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