Simple nfs configuration

Source: Internet
Author: User
Simple nfs configuration for the nfs service, the only thing that needs to be configured is the nfs core. the nfs configuration is completed by configuring the/etc/exports file, the core task of nfs is to log on and manage permissions. Therefore, the nfs configuration is to configure permissions and logon. all the people who have written the program... simple nfs configuration for the nfs service, the only thing that needs to be configured is the nfs core. the nfs configuration is completed by configuring the/etc/exports file, the core task of nfs is to log on and manage permissions. Therefore, nfs configuration is to configure permissions and logon. anyone who has written programs knows that the program needs to read the configuration file, the configuration file must have a specific format. when the program reads the configuration file, it can parse the configuration information and then perform relevant actions. Otherwise, the program will exit. The format of the/etc/exports configuration file is as follows: Column 1 lists the directories to be exported by the server, column 2 lists the client addresses allowed to log on and the permission to use the client, for example: #/etc/exports/home * (rw) indicates that the server has enabled the read/write permission on the/home directory for all hosts on the network (*) (this is dangerous ). If there are certain standards or scopes for the two content, the answer is yes, because the program is dead and the processing conditions must be clearly defined. There is no restriction on the exported Directory. as long as the path is determined, there is no problem with this path. The main configuration is logon host management and permission management. For the host part, there are many ways to set up, relatively simple, you can set a host to access, you can use an IP address to represent this host, such as:/home/192.168.17.203 (rw) /home/192.168.17.*192.168.17. * or only 192.168.17.203 can contribute to this directory. For permission directories, it is relatively simple to control the read and write permissions and whether to grant root permissions under certain circumstances (for details, refer <鸟哥的linux私房菜> ). The brief optional list is as follows: rw read/write ro can only read no_root_squash/root_squash, and whether the root permission is granted to the directory when the root user mounts nfs. Finally, there are two useful commands for rpc and nfs: showmount-e. This command can be used to view the shared directories exportfs-rv on the queried host. if the/etc/exports file is edited, use this command to re-load the/etc/exports file.

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.