作业
1
ROOT
dnf install rpcbind
dnf stall nfs-utils
systemctl stop firewalld setenforce 0 systemctl start nfs-server
mkdir -p /nfs/{shared,upload,tom} touch /nfs/share/{a..e}
vim/etc/exports
/nfs/shared *(ro)
exportfs -ra
showmount -e
客户端
showmount -e 192.168.65.130
mkdir /xx
mount -o ro 192.168.65.130:/nfs /xx
cd /xx
2
服务
mkdir -p /nfs/{shared,upload}
touch /nfs/upload/{1..3}
vim /etc/exports
/nfs/upload 192.168.65..0/24(rw,anonuid=210,anogid=210,sync)
useradd -u 210 -g 210 nfs-upload
id nfs -upload
showmount -e
chmod o+w /nfs/upload
客户 showmount -e 192.168.65.130
mount -o rw 192.168.65.130:nfs/xx/
cd /xx
showmount -e 192.168.65.130
Export list for 192.168.65.130:
/nfs/shared *
3
mkdir /nfs/tom
useradd tom
chown tom:tom mfs/tom
vim /etc/exports
/home/tom 192.168.65.130(rw)
exportfs -ra
showmount -e
/nfs/upload 192.168.65.0/24
nfs/tom 192.168.65.130/24