Linux study notes 14-week class (May 9th)

14.1 Introduction to NFS

image.png

image.png

image.png


14.2 NFS server installation configuration

image.png

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

image.png

image.png

#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


Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327037935&siteId=291194637