1.安装nfs服务器
wyj@wyj-virtual-machine:~$ dpkg -l |grep nfs #查看是否安装有nfs
wyj@wyj-virtual-machine:~$ sudo apt-get install nfs-kernel-server
wyj@wyj-virtual-machine:~$ dpkg -l |grep nfs
ii libnfsidmap2:amd64 0.25-5 amd64 NFS idmapping library
ii nfs-common 1:1.2.8-6ubuntu1.2 amd64 NFS support files common to client and server
ii nfs-kernel-server 1:1.2.8-6ubuntu1.2 amd64 support for NFS kernel server
2.建立nfs专用文件夹
wyj@wyj-virtual-machine:~$