ubuntu 16.04 nfs setup
2018-05-21 本文已影响0人
jianshu_abc
1. install package
sudo apt-get install nfs-kernel-server nfs-common
2. make dir
sudo mkdir /nfs
3. config
sudo vi /etc/exports
add below content in the end:
/nfs *(rw,sync,no_root_squash)
4. ufw disable
sudo ufw disable
5. start service
sudo /etc/init.d/rpcbind start
sudo /etc/init.d/nfs-kernel-server start
6. check ip
ifconfig
eg:
ip =192.168.1.100
7. mount nfs from arm board
mkdir -p /mnt/nfs
mount -t nfs -o nolock 192.168.1.100:/nfs /mnt/nfs
ps:
1. update nfs dir
sudo exportfs -r
2. check nfs dir
sudo showmount -e