Ubuntu 16.04安装配置NFS

参考学习:https://www.jianshu.com/p/5314f90330a6

安装nfs服务

$ sudo apt-get update
$ sudo apt-get install  nfs-kernel-server

配置nfs服务

sudo vi /etc/exports

/home/lc/work  *(rw,sync,no_root_squash,no_subtree_check)

重启nfs服务

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

连接开发板验证

ifconfig eth0 192.168.0.9
mount -t nfs -o nolock 192.168.0.231:/home/lc/work  /root/data

你可能感兴趣的:(环境配置)