ubuntu 配置 nfs

ubuntu的NFS搭建

1)
配置portmap

$ sudo dpkg-reconfigure portmap , 对Should portmap be bound to the loopback address? 选N.

配置/etc/hosts.deny

### NFS DAEMONS

portmap:ALL

lockd:ALL

mountd:ALL

rquotad:ALL

statd:ALL

2)配置/etc/hosts.allow

### NFS DAEMONS

portmap: 192.168.1.

lockd: 192.168.2.1.

rquotad: 192.168.1.

mountd: 192.168.1.

statd: 192.168.2.1.

先全部禁止,在看hosts.allow 中允许那些主机mount到

$ sudo /etc/init.d/portmap restart 重启portmap daemon.

3)配置/etc/exports

/nfsshare 192.168.1.*(rw,sync,no_root_squash)

运行 $ sudo /etc/init.d/nfs-kernel-server restart 重启nfs服务
运行 $ showmount -e 查看

Export list for ubuntu:
/nfsshare 192.168.1.*
有这样的就对啦

你可能感兴趣的:(ubuntu,list)