mount一个NFS文件系统目录到指定目录:
mount -t nfs -o rw 10.130.24.244:/home/backup /home/backup_244
前提条件:
10.130.24.244开启nfs服务
1) 启动NFS的方法和启动其他服务器的方法类似。首先需要启动portmap和nfs这两个服务,并且portmap服务一定要先于nfs服务启动。
/etc/init.d/portmap start
/etc/init.d/nfs start
2)编辑/etc/exports
/home/backup 10.130.24.*(rw,async,anonuid=0,anongid=0)
3)运行 exportfs -a
Advertisement