/ 레드햇

7.5 Configuring NFS and Automount

레드햇 rhcsa Automount NFS
https://4am.kr/7-5-configuring-nfs-and-automount/

yum search nfs

yum install -y nfs-utils

vim /etc/exports
모든 ip에서
/data -rw *(rw,no_root_squash)
systemctl start nfs
sysremctl status -l nfs
mkdir /data
touch nfsfile1
touch nfsfile2
touch nfsfile2

systemctl start nfs
showmount -e localhost
mount localhost:/data /mnt
cd /mnt

vim /etc/auto.master
/nfsserver /etc/auto.nfsserver

vim /etc/auto.nfsserver
blah -rw localhost:/data
systemctl restart autofs
cd /nfsserver/
ls
ls -a
cd blah
ls
확인가능