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 install and configure nfs under linux

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

Share

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

In this issue, the editor will bring you about how to install and configure nfs under linux. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

1. Check whether to install nfsrpm-qa | grep nfs2, install nfsyum install nfs-utils3, configure

Set up a nfs directory

Mkdir / var/lib/root_nfs

Modify directory permissions

Chmod 777 / var/lib/root_nfs

Edit nfs profile

Vi / etc/exports

The first editing is usually an empty file, fill in

/ var/lib/root_nfs * (rw,sync,no_root_squash)

"/ var/lib/root_nfs" represents the nfs shared directory

"*" means that all clients can mount this directory

"rw" means that the client that mounts this directory has read and write access to the directory

"no_root_squash" means to allow clients that mount some directories to enjoy the root identity of the host.

There are other detailed configurations can be understood by Baidu, not enumerated here.

4. Start the service service nfs start5 and mount nfs system mount-t nfs 192.168.1.103:/var/lib/root_nfs / mnt/nfs

You can see the same directory structure as / var/lib/root_nfs in / mnt/nfs.

The above is the editor for you to share how to install and configure nfs under linux. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are 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

Internet Technology

Wechat

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

12
Report