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 to build nfs file sharing service

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article introduces the relevant knowledge of "how to build nfs file sharing service". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Installation of all nodes

Yum-y install nfs-utils

Systemctl start nfs

Server operation:

Create a shared directory and authorize the directory

Mkdir / home/centos/dist-nfs

Chmod 777 / home/centos/dist-nfs

Edit configuration

Vi / etc/export

/ home/centos/dist-nfs (rw,no_root_squash,no_all_squash,sync)

Indicates that all can be mounted (modify ip parameters as needed)

Parameter description:

Parameter comment ro read-only access rw read-write access sync all data is written on request hide does not share its subdirectory no_hide shared NFS directory subdirectory all_squash shared file UID and GID mapping anonymous user anonymous, suitable for public directories. No_all_squash retains all requests of UID and GID (default) root_squash root users of shared files are mapped to the same permissions as anonymous users (default) no_root_squas root users have full administrative access to the root directory exportfs-rv load configuration, such as error troubleshooting according to error content

Each node is mounted:

Create a shared directory and authorize the directory

Mkdir / home/centos/dist-nfs

Chmod 777 / home/centos/dist-nfs

Mount 192.168.*://home/centos/dist-nfs / home/centos/dist-nfs

Df-hT to see if the hang is successful.

Note: open port 2049 *

This is the end of "how to build nfs file sharing service". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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

Servers

Wechat

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

12
Report