1、安装NFS服务器
$sudo apt-get install nfs-kernel-server nfs-common
2、编辑/etc/exports文件
#sudo vi /etc/exports
在最后一行增加需要挂载的目录:
/home/wolf/Downloads *(subtree_check,rw,no_root_squash,async)
3、重启NFS服务
$sudo /etc/init.d/nfs-kernel-server restart
$sudo exportfs -a
4,挂载
因为本人用的是在arm上挂载x86ubuntu系统,写入脚本mount.sh:
*********************************************************************************
#!/bin/bash
mount -t nfs xxx.xxx.x.xxx:/home/wolf/Downloads /mnt -o vers=3,nolock
*********************************************************************************
在arm terminal上输入:
#source mount.sh
本文详细介绍如何在Ubuntu系统中安装并配置NFS服务器,包括编辑配置文件、重启服务及在ARM设备上通过脚本挂载远程目录的具体步骤。
2814

被折叠的 条评论
为什么被折叠?



