14.1 Introduction to NFS
14.2 NFS server installation configuration
The server installs nfs-utils and rpcbind; the client only installs nfs-utils
#yum install -y nfs-utils rpcbind
#vim /etc/exports
/home/nfstestdir
192.168.133.0/24(rw,sync,all_squash,anonuid=1000,anongid=1000)
#mkdir /home/nfstestdir
#chmod 777 /home/nfstestdir
View listening ports #netstat -lntp
#systemctl start rpcbind
#systemctl start nfs
View running process services #ps aux | grep nfs
Boot up #systemctl enable rpcbind
#systemctl enable nfs
14.3 NFS configuration options
#yum install -y nfs-utils
#showmount -e 192.168.133.130
Turn off the firewall service #systemctl stop firewalld
Turn off the firewall #setenforce 0
#mount -t nfs 192.168.133.130:/home/nfstestdir /mnt
#df -h
#touch /mnt/aminglinux.txt
#ls -l /mnt/aminglinux.txt