1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| yum -y install nfs-utils rpcinfo -p localhost
mkdir /nfs
cat <<EOF > /etc/exports /nfs *(rw,sync,no_root_squash,no_subtree_check) EOF
exportfs -r
systemctl enable rpcbind systemctl start rpcbind systemctl enable nfs-server systemctl start nfs-server
showmount -e localhost mkdir /mnt/nfs mount -t nfs 127.0.0.1:/nfs /mnt/nfs
|