环境:oraclelinux6.7

以前在centos服务器上安装nfs、挂载NFS都没出现问题,今天在oraclelinux上安装后,在客户端mount的时候报mount.nfs: access denied by server while mounting错误

原因是nfs服务器没有开启

在服务器编辑配置文件,开启方式如下,

vim /etc/sysconfig/nfs
# Optional arguments passed to rpc.nfsd. See rpc.nfsd(8)
# Turn off v2 and v3 protocol support
RPCNFSDARGS="-N 2 -N 3"    ###启用
# Turn off v4 protocol support
RPCNFSDARGS="-N 4"         ###启用

重启

service   nfs   restart

再次在客户端重新挂载即可。

相关文章:

  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
  • 2021-08-07
  • 2021-08-02
  • 2022-01-05
  • 2022-12-23
猜你喜欢
  • 2021-09-09
  • 2022-12-23
  • 2021-05-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案