
sudo apt-get install nfs-kernel-server
sudo apt-get install nfs-common

sudo vi /etc/exports
/home/aston/rootfs *(rw,sync,no_root_squash,no_subtree_check)
chmod 777 -R /home/aston/rootfs
sudo showmount -e
sudo exportfs -r
sudo showmount localhost -e

sudo /etc/init.d/nfs-kernel-server restart
mount -t nfs -o nolock localhost:/home/aston/rootfs /opt
相关文章: