Linux nfs service setup

Source: Internet
Author: User


The Network File System (nfs) is a mechanism for attaching partitions (directories) on remote hosts to www.2cto.com over 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 the windows shared directory) is used to share data between Linux systems. Install the NFS server [root @ localhost] # If rpm-q nfs-utils is not installed, find the nfs-utils installation package from the installation disc of the corresponding Linux operating system. For example: [root @ localhost] # rpm-ivh nfs-utils-1.0.9-24.el5.i386.rpm NFS configuration [root @ localhost] # vi/etc/exports add to the directory and access permission allowed by other computers example: /home 192.169.2. * (rw, sync, no_root_squash) 1./home: Directory 2 and 192.169.2 that can be accessed by other computers. *: Client IP addresses allowed to access the directory 3. Rw: readable and writable 4. Sync: Synchronous write disk (async: data will be saved in the memory first, rather than directly written to the hard disk) 5. no_root_squash: indicates that the root user of the client has the write permission for the directory. 1. Run the following command to start the NFS server:/etc/init. d/nfs start2. Run the following command to restart the NFS server:/etc/init. d/nfs restart NFS use moun T command to mount the shared directory on the NFS server. # Mount-tnfsservername:/shared_dir/localdir example: # mount-tnfs10.168.1.100:/home/mnt/nfs

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.