How Can I Enable the NFS Client to Automatically Mount the NFS Share?

1.Log in to the client as the root user.
2.Run the vi /etc/fstab command.
3.Press i to enter the editing mode.
4.Move the cursor to the end of the file and add ipaddress: filesystem mount_path nfs timeo=10 0 0.
ipaddress indicates a virtual IP address.
filesystem indicates a shared file system.
mount_path indicates a created mount directory.
For example, if the ipaddress is 192.168.0.10, the filesystem is /vx/nfs_test, and the mount_path is /nfs_mount, the result is as follows after the modification:


5.Press Esc to exit the editing mode.
6.Type :wq and press Enter.

Scroll to top