首页 > 系统服务 > 详细

Centos. Mac 上 nfs 搭建

时间:2019-11-29 13:18:31      阅读:64      评论:0      收藏:0      [点我收藏+]

centos 关闭fiewalld,selinux

 

yum install yum install nfs-utils portmap

 

vim /etc/exports

文件写入时使用anonuid用户写入owner,anongid组写入文件,用户或组id在/etc/passwd里面找

添加内容:/home *(insecure,rw,async,no_root_squash,anonuid= 65534,anongid=65534)

:wq

 

service.rpcbind start

service nfs start

 

Mac

sudo mount -t nfs -o resvport,rw  centos:/home  /rhome

Centos. Mac 上 nfs 搭建

原文:https://www.cnblogs.com/xiaoyongyang/p/11956871.html

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