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 configure nfs

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly shows you "how to configure nfs", 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 "how to configure nfs" this article.

Recently configured a nfs host, there are a few points in use, write down a memo

First, if server and client are both in the same intranet, you can use udp protocol, which can be faster.

Second, the server side uses async, that is, asynchronous writing. Although asynchronous writes reduce a little bit of data security (some of the last data may be lost in the event of an unexpected downtime), the performance is much higher than synchronous writes.

Nfs mainframe part

Start the portmap and nfsd services

Vi / etc/exports

Quote

/ data/htdocs/spacemx 192.168.0.* (rw,async,anonuid=99,anongid=99)

Where anonuid=99 is the nobody user and anongid=99 is the nobody group

Async indicates that asynchronous writes are used

Rw is readable and writable only

192.168.0.* indicates that it is only open to client in the network 192.168.0.0 Universe 24.

Client part

Start the portmap service

Set up the mount directory mkdir / nfs

Mounting

Quote

Mount-t nfs-o udp 192.168.0.101:/data/htdocs/spacemx / nfs

-o udp shows that the use of udp communication, in the intranet environment, the network stability is relatively high, the use of udp protocol helps to improve the speed.

The above is all the content of this article "how to configure nfs". 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

Servers

Wechat

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

12
Report