In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
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
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.