Centos. Mac 上 nfs 搭建

Posted on 2019-11-29 11:50  xiaoyongyang  阅读(502)  评论(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

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3