NFS4 文件系统共享配置

本文档介绍了如何设置NFS4服务器和客户端。在服务器端,安装nfs-kernel-server,创建共享文件夹/export/users并给予写权限。在/etc/exports中添加相应配置。在NFS4客户端,安装nfs-common,可通过将挂载信息添加到/etc/fstab实现自动挂载。
摘要由CSDN通过智能技术生成

:Original works

https://help.ubuntu.com/community/SettingUpNFSHowTo

https://help.ubuntu.com/community/Autofs

Summary Configuration:

NFS4 Server:

1. # apt-get install nfs-kernel-server

mkdir -p /export/users as share folder. and chmod 777 export/users in order users folder have write access.

2. Add below statements to /etc/exports.

/export       192.168.1.0/24(rw,fsid=0,insecure,no_subtree_check,async)  // folder export share to 192.168.10 host
/export/users 192.168.1.0/24(rw,nohide,insecure,no_subtree_check,async)
3. restart nfs server.
# /etc/init.d/nfs-kernel-server restart

NFS4 Client:

1. # apt-get install nfs-common

2. one time mount:
# mount -t nfs4 -o proto=tcp,port=2049 nfs-server:/export /mnt

or, mount once reboot, add below to /etc/fstab:

nf
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值