Redhat7 configuration File sharing Service
Similar to the network sharing function of winodws, Linux system also provides a variety of network file sharing methods, the common one is NFS,Samba,FTP. This paper introduces the way of NFS network file system installation and configuration.
Introduction to NFS
Nfs relies on RPC protocol in the process of message passing. When using NFS, the client only needs to use the mount command to mount the directory of the remote host locally.
For example, mount / home/test of 10.10.0.12 to the local / home/test directory of 10.10.0.11
[root@localhost ~] # mount 10.10.0.12:/home/test / home/test configure NFS server
NFS requires nfs-utils*.rpm rpcbind*.rpm to be installed
The version number varies depending on the system version [root@localhost ~] # yum install-y nfs-utils rpcbind.exports parameter description-an all mount / etc/exports file settings,-r remount / etc/exports file settings,-u unmount a directory shownmount parameter description-a lists the complete directory information of the nfs share,-d lists the directory where the client is remotely installed -e displays the list nfs parameter of the exported directory indicating that ro read-only permissions, rw read and write permissions, all_squash anonymous users or groups, no_all_squash non-anonymous users or groups, root_squash maps root users and groups to anonymous users and groups, no_root_squash contrary to root_squash, sync writes data synchronously to the buffer, and async saves the data in the memory buffer first. Then write to the disk settings expoprts file [root@localhost ~] # cat / etc/exports/home/test *. * (rw) start the service [root@localhost ~] # systemctl start rpcbind [root@localhost ~] # systemctl start nfs-server configure NFS client [root@localhost] # mount-t nfs- o rw 10.10.0.12:/home/test / home/test
In this way, can be used!
Original address of this article: https://www.linuxprobe.com/redhat-nfs-server.html