attachment download1. 安装 apt-get install nfs-kernel-server
(安装nfs-kernel-server时会自动安装nfs-common 和portmap)
2. 配置portmap
gedit/etc/default/portmap 将最后一行注释掉
或者执行 dpkg-reconfigure portmap 选择N即可
配置hosts.deny
gedit /etc/hosts.deny
添加
### NFS DAEMONS
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL
配置hosts.allow
gedit /etc/hosts.allow
添加
### NFS DAEMONS
portmap:192.168.1.
lockd:192.168.1.
mountd:192.168.1.
rquotad:192.168.1.
statd:192.168.1.
配置/etc/exports
添加
/home 192.168.1.*(rw,sync,no_root_squash)
3. 启动nfs 按顺序执行
/etc/init.d/portmap restart
/etc/init.d/nfs-common restart
/etc/init.d/nfs-kernel-server restart
4. 测试
mount -t nfs 192.168.1.88:/home /mnt
文章评论(0条评论)
登录后参与讨论