UBUNTU版本为13.10
apt-get install nfs-kernel-server nfs-common portmap
下载安装nfs-kernel-server,nfs-common ,,portmap在13.10里好像是没有,好像被rpcbind替代了,但是安装rpcbind
sudo service rpcbind start
sudo update-rc.d rpcbind enable
也不行,,,修改挂载的配置文件sudo gedit /etc/exports
/home/gzz/mynfs *(rw,sync,no_root_squash)
启动服务器
sudo /etc/init.d/nfs-kernel-server restart
发现会有问题,显示Not starting: portmapper is not running
然后重启系统后就正常了,,不正常可以加sudo modprobe nfs试试
测试mount 192.168.18.3:/home/gzz/my_nfs /mnt
卸载
sudo umount /mnt