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

13pr NFS file sharing service

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

Share

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

1the usage scenario of NFS service

The working principle of 2Det NFS service

1) the client passes the command to the NFS server for execution

2) client-to-server delivery is based on the underlying TCP/IP protocol and RPC process

3) rpc.nfst determines whether the client has nfs link permission, and rpc.mount determines whether the nfs client has authentication permission.

Portmap is a random port table formed by running rpc services

Note: you must first run RPC to run NFS

3. Install the NFS service server

Yum search nfs to view software packages for nfs services

Yum-y install nfs-utils

Rpcinfo-p View portmap

Rpcbind port: 111,

Nfs ports: randomly generated

4, profile

/ etc/exports

Rw: read and write permissions

Ro: read-only permission

Sync: see data written to memory and hard disk at the same time to ensure data security

All_squash: no matter what user the client accesses, the server is implied as an anonymous user

Anonuid,anongid: indicates that you can specify users (ordinary users) to access

5. Start the server

Systemctl start rpcbind nfs

Systemctl status rpcbind nfs

Showmount-e test

6. Nfs is installed on the client

Yum-y install nfs-utils

7, start

Systemctl start rpcbind

Showmount-e 172.16.1.31

8, mount

Mount-t nfs 172.16.1.31:/data / data (Mount the shared directory data of 172.16.1.31 to the client / data in nfs format

At this point, any data written on the client / data is shared under the server / data.

9, exercises:

Power on and mount automatically

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