Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How redhat7 configures file sharing services

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "redhat7 how to configure file sharing service", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "redhat7 how to configure file sharing service" this article.

File sharing can be realized by NFS service among linux hosts, and it is also very convenient to implement.

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

-a mount all settings in / etc/exports file,-r remount settings in / etc/exports file,-u unmount a directory

Shownmount parameter description

-a lists the full directory information for the nfs share,-d lists the directory where the client is remotely installed, and-e displays a list of exported directories

Nfs parameter description

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 is contrary to root_squash, sync writes data synchronously to the buffer, and async saves the data in the memory buffer before writing to disk

Set up the expoprts file [root@localhost ~] # cat / etc/exports/home/test *. * (rw) start the service [root@localhost ~] # systemctl start rpcbind [root@localhost ~] # systemctl start nfs-server configuration NFS client [root@localhost ~] # mount-t nfs- o rw 10.10.0.12:/home/test / home/test is all the content of this article "how to configure file sharing service for redhat7". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report