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 understand NFS Network File system Server

2025-04-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Today, I will talk to you about how to understand the NFS network file system server, which may not be well understood by many people. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.

NFS network file server

NFS is the abbreviation of network file system, which is mainly used for sharing between linux and linux.

NFS is installed by default in centos systems. It depends on portmap and nfs-utils software packages, where portmap is started and nfs needs to be started manually.

Configuration of the NFS service

Its configuration file is / etc/exports file with the following structure:

/ home/nfs * (sync,ro)

The first field is used to define the shared directory; the second field is used to define that the connection host can be a domain name or ip,* represents any host; and the third field defines permissions. Sync represents synchronous disk, ro represents read-only, and rw remote connection user representative can read and write.

Configure an instance

First create a / etc/exports, as shown in the figure

Mkidr / home/nfs / / shared directory

Chown-R nfsnobody:nfsnobody / home/nfs / / change users and groups

Mkdir / mnt/share / / remote host establishes a shared directory

Chown-R nfsnobody:nfsnobody / mnt/share / / change users and groups

Ping 192.168.211.128 / / ping can reach NFS remotely

Mount-t nfs 192.168.211.128:/home/nfs / mnt/share/ Mount the file

At this point, we update the file on NFS, and server2 can see the update result.

But at this point, server2 is read-only. To gain permission to change, you can change the configuration file ro of NFS to rw restart. At this point, both parties to the shared content can change each other.

Umount / mnt/share / / if not, umount can be uninstalled

Showmount-a use e can be used to manage our shared disks and linked clients

After reading the above, do you have any further understanding of how to understand the NFS network file system server? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

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