14.2 NFS服务端安装配置
服务端安装nfs-utils和rpcbind;客户端只安装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
查看监听端口#netstat -lntp
#systemctl start rpcbind
#systemctl start nfs
查看运行进程服务#ps aux | grep nfs
开机启动#systemctl enable rpcbind
#systemctl enable nfs
14.3 NFS配置选项
#yum install -y nfs-utils
#showmount -e 192.168.133.130
关闭防火墙服务#systemctl stop firewalld
关闭防火墙#setenforce 0
#mount -t nfs 192.168.133.130:/home/nfstestdir /mnt
#df -h
#touch /mnt/aminglinux.txt
#ls -l /mnt/aminglinux.txt
原文地址:http://blog.51cto.com/12059818/2114653