NFS服务器搭建

1 摘要

 基于ubuntu18.04搭建NFS服务器

2 安装应用包

sudo apt-get install nfs-kernel-server rpcbind

3 修改NFS配置文件

添加/home/hhp/imx6/nfs为nfs的目录

sudo vi /etc/exports

NFS服务器搭建

4 重新启动NFS服务

sudo /etc/init.d/nfs-kernel-server restart

5 uboot通过NFS下载文件出错

5.1 uboot使用nfs命令时 出现ERROR:File look fail

出现问题的原因可能是ubuntu18.04默认使用NFS版本比较高,uboot使用的NFS版本比较低

NFS服务器搭建

5.2 修改NFS默认配置

sudo vi /etc/default/nfs-kernel-server

NFS服务器搭建

5.3 重新启NFS服务

sudo /etc/init.d/nfs-kernel-server restart

5.4 uboot成功下载

NFS服务器搭建

参考连接:

https://blog.csdn.net/polaris_zgx/article/details/103571725

https://blog.csdn.net/qq_37860012/article/details/86717891