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,async,wsize=32768,rsize=32768  centos:/home  ~/rhome

 

Done!

相关文章:

  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
  • 2022-01-29
  • 2021-07-06
  • 2021-06-30
  • 2021-08-18
  • 2021-09-21
猜你喜欢
  • 2022-12-23
  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-05-25
  • 2022-12-23
相关资源
相似解决方案