This topic describes how to install a Network File System (NFS) client in Linux and run the mount command to mount an NFS file system.
PrerequisitesThe following operations are performed:
Step 1: Install an NFS client
Before you mount an NFS file system on a Linux Elastic Compute Service (ECS) instance, install an NFS client.
Step 2: Mount an NFS file system
You can use the domain name of the file system or the mount target to mount the NFS file system on the ECS instance. The domain name of the file system is translated to the IP address of the mount target in the zone where the ECS instance resides.
The following table lists the parameters in the mount command.
|file-system-id.region.nas.aliyuncs.com:/ /mnt||<Domain name of the mount target>:<Name of the shared directory> <Path of the mount directory>. Replace the domain name of the mount target, the name of the shared directory,
and the path of the mount directory based on your business requirements.
|vers||The protocol version of the file system.
NFSv3 and NFSv4 are supported.
Multiple mount options are available when you mount a file system. For more information, see the following table.