Solution for "access denied by server while mounting" during NFS shared service mounting

Source: Internet
Author: User

The Linuxf release version used by the author is Centos6.4. The following methods are theoretically valid for both Fedora and Red Hat:

After the NFS service is set up, use the following command to mount it:

 

# Mount-t nfs.:/home/liangwode/test/mnt

 

The following error message is displayed:

Mount. nfs: access denied by server while mounting 172.16.12.140:/home/liangwode/test

We can solve the problem by using the following methods:

Modify the/etc/sysconfig/nfs file

# Turn off v2 and v3 protocol support # RPCNFSDARGS = "-N 2-N 3" # Turn off v4 protocol support # RPCNFSDARGS = "-N 4"/* put this sentence # Remove */

NFS is divided into three versions, that is, the NFS-2 NFS-3 NFS-4, which closes these three NFS versions by default, we just need to open the NFS-4.

Solve the problem !!!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.