美文网首页
NFS安装配置

NFS安装配置

作者: OhLee | 来源:发表于2018-01-26 23:16 被阅读0次

CentOS

yum install nfs-utils rpcbind
  • 编辑/etc/exports
/home/lee/media 10.1.1.1(rw,sync,no_root_squash) 10.1.1.2(rw,sync,no_root_squash)
service rpcbind start
service nfs start
chkconfig rpcbind on
chkconfig nfs on 
  • 挂载
mount -t nfs 10.1.1.200:/home/lee/media /home/lee/media
  • 开机自动挂载
    编辑/etc/fstab
10.1.1.200:/home/lee/media    /home/lee/media    nfs   rw
  • 卸载方法:
umount  /home/lee/media

Ubuntu

apt-get install nfs-kernel-server
  • 编辑/etc/exports
/home/lee/Projects 10.42.78.52(rw,sync,no_root_squash) 
/etc/init.d/nfs-kernel-server restart
  • Windows挂载

控制面板->程序->打开或关闭windows功能->NFS客户端

mount 192.168.200.250:/home/lee/Projects H:

相关文章

网友评论

      本文标题:NFS安装配置

      本文链接:https://www.haomeiwen.com/subject/pdrgaxtx.html