1.在源服务器端启动nfs和portmap服务 service nfs start service portmap start 通过ntsysv,把nfs和portmap服务加到自启动服务中
2. 在源服务器编辑配置文件/etc/exports
/mnt *(rw,sync)
含义:共享/mnt目录给任意的ip地址的机器
3. 配置好后重启源服务器端的nfs服务
service nfs restart
4. 在客户端启动portmap服务 service portmap start
5. 在客户端mount远程文件夹
mount -t nfs 192.168.0.5:/mnt /mnt
那么就把本地服务器的/mnt文件远程mount到192.168.0.5的mnt下。
转载于:https://www.cnblogs.com/ManMonth/archive/2012/02/24/2366655.html