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

Mount the file system using NFS under linux

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

Share

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

Nfs server Tencent Cloud 182.254.x.x Aliyun 60.205.x.x

1. Verify that the nfs server installs the nfs package using the rpm-Q nfs-utils command 2. 0. Configure the nfs server vi / etc/exports / data/ 60.205.x.x (rw,sync,no_root_squash) / data/ is the directory where the nfs server is hung locally

60.205.x.x is a remotely mounted server

The main parameters that can be set are as follows:

Rw: read and write permissions

Ro: read-only permission

No_root_squash: if the user who logs in to the NFS host is root, the user has root permission

Root_squash: if the user who logs in to the NFS host is root, the user right will be limited to anonymous user nobody

All_squash: regardless of the permissions of the user who logs in to the NFS host, it will be reset to anonymous user nobody.

Anonuid: all users who log in to the NFS host are set to the specified user id. This ID must exist in / etc/passwd.

Anongid: same as anonuid, but just become group ID!

Sync: data is synchronously written to memory.

Async: the data will be temporarily stored in memory and will not be directly written to the hard disk.

Insecure: unauthorized access from this machine is allowed.

Source: http://blog.csdn.net/kevinhg/article/details/5967432/

3. Restart the nfs service / bin/systemctl restart nfs.service 4. Perform the operation mount-t nfs 182.254.139.95:/data / mnt on the remote mount server 60.205.x.x

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