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: