nfs服务器搭建

这里写图片描述

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

猜你喜欢

转载自blog.csdn.net/m0_37182543/article/details/79116599