Get the App
SLTechnology News&Howtos  ›  Servers  › 

Redhat7 configuration File sharing Service

Shulou Source: shulou.com Published: 2022-06-02 05:30:17 11月13日 Update

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

Tags: Directories files users configurations parameters systems networks services customers clients data methods permissions versions buffers buffers hosts information memory functions Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Redmi Huawei Docker Shulou Technology