linux安装nfs文件系统

1、安装nfs

sudo apt-get install nfs-kernel-server 

sudo apt-get install nfs-common 

sudo /etc/init.d/nfs-kernel-server restart   //启动服务

2、生成nfs目录

sudo mkdir xx/xx/nfs   //创建一个目录,路径自行指定

sudo vi /etc/exports 添加:/xx/xx/nfs      *(rw,sync,no_root_squash)

exportfs -rf   //使目录生效

3、使用

同一网段下连接服务器与开发板

mount -t nfs 服务器ip:/xx/xx/nfs /nfsroot -o nolock

将前面步骤中创建的目录/xx/xx/nfs,mount到开发板的/nfsroot。

猜你喜欢

转载自blog.csdn.net/weixin_49513223/article/details/130053154