#服务端:请自行配置yum源
命令操作:yum install nfs-utils rpcbind
#配置文件编辑:vi /etc/exports
    /data 0.0.0.0 (rw,sync,no_root_squash)
#启动服务
    /etc/init.d/rpcbind start
    /etc/init.d/nfs start
#开机自启动
    chkconfig nfs on

#client端:请自行配置yum源
#安装依赖包
    命令:yum install nfs-utils rpcbind
#创建要挂在的文件夹
    命令:mkdir -p /data
    挂载:mount -t nfs 192.168.2.1:/data /data/

#检验:
    命令:showmount -e 192.168.2.1

#开机挂载:vi /etc/fstab
192.168.2.1:/data /data/ rw,tcp,intr   0  0

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-21
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2022-01-19
猜你喜欢
  • 2022-12-23
  • 2021-12-18
  • 2021-06-11
  • 2021-10-27
  • 2021-12-31
相关资源
相似解决方案