nfs服务器搭建

sudo apt-get install nfs-kernel-server

sudo apt-get install nfs-common

nfs服务器搭建

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

nfs服务器搭建

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

mount -t nfs -o nolock localhost:/home/aston/rootfs /opt

相关文章: