Ubuntu搭建NFS服务器

Ubuntu搭建NFS服务器

1、安装NFS服务器。

sudo apt-get install nfs-kernel-server

2、修改NFS配置文件/etc/exports。

/home/rootfs/rootfs *(rw,sync,no_root_squash,no_subtree_check)

3、重启NFS服务器。

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

4、测试NFS服务器,远程。

sudo mount -t nfs 192.168.2.11:/home/rootfs/rootfs/ /mnt

猜你喜欢

转载自blog.csdn.net/qq_19247455/article/details/80423957