Simple assumption of NFS Network File Server

Source: Internet
Author: User


The NFS Network File Server simply assumes that the NFS Network File Server www.2cto.com NFS is short for the Network File System and is mainly used for sharing between linux and linux. NFS is installed by default in centos. It depends on two software packages: portmap and nfs-utils. portmap is started and nfs needs to be started manually. the configuration file of the NFS service is/etc/exports. The structure of the file is as follows:/home/nfs * (sync, ro) the first field is used to define the shared directory; the second field is used to define the connection host can be a domain name or ip address, * represents any host; the third field Defines permissions, sync represents synchronization disk, ro represents read-only, rw remote connection allows users to read and write data. The configuration instance first creates a/etc/exports, Mkidr/home/nfs // shared directory Chown-R nfsnobody: nfsnobody/home/nfs // change the user and group Mkdir/mnt/share // create a shared directory Chown-R nfsnobody: nfsnobody/mnt/share // change user and group Ping 192.168.211.128 // You can remotely ping NFS mount-t nfs 192.168.211.128: /home/nfs/mnt/share // mount the file. Then, we update the file on NFS. server2 can see the update result.
But in this case, server2 is read-only. To obtain the change permission, you can change the NFS configuration file ro to rw and restart. In this case, both parties can change the shared content. Umount/mnt/share // if not used, unmount umount to Showmount-a/e can be used to manage the shared disks and connected clients.
 

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.