ubuntu开启NFS服务

环境:ubuntu16.04

1.安装NFS服务

sudo apt-get install nfs-kernel-server rpcbind

2.在用户目录下创建nfs文件夹 目录/home/arjun/linux/nfs

sudo mkdir /home/arjun/linux/nfs

3.修改文件参数  文件位置 /etc/exports

sudo vim /etc/exports

添加内容

/home/arjun/linux/nfs *(rw,sync,no_root_squash)

4.重启NFS服务

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

你可能感兴趣的:(linux)