14.1 NFS介绍

Linux学习笔记十四周一次课(5月9日)

Linux学习笔记十四周一次课(5月9日)

Linux学习笔记十四周一次课(5月9日)Linux学习笔记十四周一次课(5月9日)

Linux学习笔记十四周一次课(5月9日)Linux学习笔记十四周一次课(5月9日)


14.2 NFS服务端安装配置

Linux学习笔记十四周一次课(5月9日)

Linux学习笔记十四周一次课(5月9日)

服务端安装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配置选项

Linux学习笔记十四周一次课(5月9日)

Linux学习笔记十四周一次课(5月9日)Linux学习笔记十四周一次课(5月9日)

Linux学习笔记十四周一次课(5月9日)

#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


转载于:https://blog.51cto.com/12059818/2114653

相关文章:

  • 2021-11-04
  • 2021-04-03
  • 2021-11-15
  • 2021-12-30
  • 2021-09-05
  • 2021-12-12
  • 2021-12-06
  • 2021-08-29
猜你喜欢
  • 2021-11-27
  • 2022-01-12
  • 2021-07-16
  • 2021-07-12
  • 2021-12-27
  • 2021-12-31
  • 2021-09-05
相关资源
相似解决方案