现在的位置: 首页 > 综合 > 正文

UBUNTU13.10下安装NFS

2014年09月05日 ⁄ 综合 ⁄ 共 455字 ⁄ 字号 评论关闭

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

 

 

 

抱歉!评论已关闭.