[Original] Simple NFS configuration in linux-suitable for beginners

Source: Internet
Author: User
[Original] Simple NFS configuration in linux-suitable for beginners-general Linux technology-Linux technology and application information. For more information, see the following. Simple NFS configuration in linux
Copyright www.itshanghai.net
First, let's take a look at what NFS is.
Network File System (NFS) is a distributed File System that allows computers installed on different operating systems to share files and peripherals, therefore, its communication protocol design has nothing to do with the host and the operating system. it was launched by SUN in 1984, allowing local machines to use files and peripherals of another networked computer. NFS depends on the RPC protocol during file transfer or information transfer. The current version of NFS is V4 (RFC3010)
Remote procedure call (RPC) is a mechanism that enables the client to execute programs in other systems. Since RPC programs do not have to understand the network protocols that support communication, RPC improves program interoperability. It is often used in Distributed Client/Server models. The client program sends the request, and the program that provides the service is the server.

The configuration steps are as follows:
1. Install and start the service
Service nfs start
2. Main configuration file
/Etc/exports
3. Server
A) Vi/etc/exports
B) add record
/Test1 192.168.1.2 (ro, sync)
/Test2 * (rw, sync)
Note: The/test1/test2 directory is shared, and the/test1 directory is only available for ip: 192.168.1.2. The/test2 directory is available for all hosts.
C) enable all shared directories
Enable Exportfs-
Disable Exportfs-au
3. Client
Mount 192.168.1.100:/test1/test3 failed, because the local IP address is 192.168.1.101, not 192.168.1.2
Mount 192.168.1.100:/test2/test4 successful

Note: Local permissions + Shared Permissions
Professional IT outsourcing service network
Www.itshanghai.net
Related Article

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.