NFS Network File System Construction

Source: Internet
Author: User

The establishment of an NFS Network File System is dependent on the RPC service. RPC acts as a proxy for other services to establish network connections and implement network transmission, working on TCP/UDP port 111, RPC is provided by portmap. Generally, it is installed and started by default # service portmap status # rpcinfo-p X. x. x. X View X. x. x. x's open rpc service rpc. mountd is used to verify the client information id and subnet. Rpc. the nfs-Based Disk Quota function of quotad nfslock (rpc. statd, lockd) nfs read/write locks. The above services use random ports to listen to TCP/2049 and UDP/2049 ports (nfsd) enable nfs # service nfs start # chkconfig nfs on nfs configuration file/etc/exports/XXXX shared directory name 172.16.x.x (ro) 192.168.O.O (rw) shared directory permission mode: ro, rw, async, sync, root_squash, no_root_squash, all_squash exportfs-r export all shared directories-u cancel one or more shared directories exportfs-r exportfs-u 192.168.0.0/24: /vhosts showmount-e X. x. x. X view the shared directory showmount-a X on a host. x. x. X It shows which users mount the nfs shared directory on the server. The permission is determined by the user ID. If you want to have the permission on the shared directory, you must create a user with the same id as the owner of the server shared directory on the client and switch to the user to operate the files in the shared directory.

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.