环境:

服务器:192.168.20.204

客户端:192.168.20.203

1. 在服务器配置/etc/export  添加可以共享的文件夹和允许的客户端地址

/home/dir 192.168.20.203(rw,no_root_squash,async)

要加上no_root_squash,async,不然会出现reason given by server: Permission denied

重启nfs服务器

service nfs restart

2. 在客户端运行

mkdir -p /mnt/dir    创建挂载点

mount -t nfs 192.168.20.204:/home/dir /home/dir

一定要先创建挂载点,不然会出现mount point does not exist的错误

3. RPC Error: Program not registered错误

服务没启动。。

运行service nfs restart

 

参考文章:http://zhuang13.blog.51cto.com/3044154/557879

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-30
  • 2021-10-03
  • 2021-05-13
  • 2021-05-26
  • 2021-04-25
相关资源
相似解决方案