2020/8/7
dnf -y install nfs-utils
#Domain = local.domain.edu Domain = takahashi.lab
/NFS 192.168.xx.0/24(rw,sync,no_root_squash,no_subtree_check)firewall-cmdにサービスを追加する。
mkdir /NFS;chmod 777 /NFS systemctl status nfs-server; # rpcbindは稼働中、nfs-serverは停止中 systemctl enable --now nfs-server; systemctl status nfs-server; # rpcbindは稼働中、nfs-serverは稼働中 firewall-cmd --list-service ;#nfsがない firewall-cmd --permanent --add-service=nfs firewall-cmd --reload firewall-cmd --list-service ;#nfsがある
手順 | NFSサーバ | クライアント | memo |
---|---|---|---|
1 | touch /NFS/xxxxx | ||
2 | mount -t nfs 192.168.xx.xx:NFS /mnt;ls /mnt | クライアントでファイル/mnt/xxxxxがあればOK | |
3 | mkdir /mnt/yyyyy | ||
4 | ls -la /NFS | サーバでディレクトリ/NFS/yyyyyがあればOK |