NFS服务基本配置及使用

操作系统:redhat 7.2

参考链接:https://www.cnblogs.com/dscode/p/6146409.html

NFS:Network File System

一、服务器端配置

创建共享目录

cd /mnt
mkdir dara

创建或修改/etc/exports配置文件

vim /etc/exports

cat /etc/exports

/mnt/data/  ip(rw,sync,no_root_squash,no_all_squash)

重启服务

exportfs -r

service rpcbind restart

service nfs restart

二、客户端配置

 mount -t nfs 服务端IP:/mnt/data /mnt/data

原文地址:https://www.cnblogs.com/jzhg/p/7976656.html