NFS server configuration in Linux

Source: Internet
Author: User

The Network File System (NFS) configured on the NFS server in Linux is a mechanism to mount the partitions (directories) on the remote host to the local device through the network, with support for the network file system, you can operate on the shared partition (directory) of the remote host on the local system just like operating on the local partition. Similar to Windows shared directory. NFS installation is very simple. In Linux2.6, only three software packages are required, and usually installed as the system's default package. Nfs-utils-* (2) and system-config-nfs-* (1) 1. Check whether the system has NFS rpm-qa | reap nfs 2. the NFS server configuration file for NFS service is/etc/exports. This file is the main NFS configuration file, however, the system does not have a default value. You may need to manually create it using vim and then write the configuration content in the file. Vim etc/exports: Add a directory and access permission for other computers. Example:/nfs 218.197.21. * (rw, sync, no_root_squash)/nfs: Directory 218.197.21 that allows access from other computers. *: The Client IP address that is allowed to access the directory rw: Read and Write Permissions sync: synchronize data into the memory buffer and disk, which is less efficient, but can ensure data consistency (async: store data in the memory buffer before writing data to the disk if necessary.) no_root_squash: the root user of the client has the write permission on the directory. 3. Run the command: service nfs restart to restart the NFS service.

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.