NFS configuration in rhel6

Source: Internet
Author: User

First, check whether the NFS package is installed.

[[Email protected] desktop] # rpm-Qa | grep nfs-utils
Nfs-utils-lib-1.1.5-4.el6.x86_64
Nfs-utils-1.2.3-26.el6.x86_64
If not, use yum for installation.

[[Email protected] desktop] # Yum install nfs-utils

The NFS service depends on the rpcbind service, because the rpcbind is started before the NFS service is started.

[[Email protected] desktop] # service rpcbind start
Starting rpcbind: [OK]
Then start the NFS service.

[[Email protected] desktop] # service NFS start
Starting NFS services: [OK]
Starting NFS quotas: [OK]
Starting NFS mountd: [OK]
Stopping RPC idmapd: [OK]
Starting RPC idmapd:
The NFS configuration file is/etc/exports. The format is as follows:

Each row defines a shared directory. Each field in each row is as follows.

Directory to be shared, such as/share directory

Persons to be shared with, such as the machine name, IP address, and IP address segment

Client-mounted parameters such as RW, Ro, sync, async, and no_root_squash

Example:

/Share * (RW, Asyn, no_root_squash)

 

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.