NFS服务器的配置与使用 (fc6)
时间:2007-06-24 来源:fedorac
一般来说,如果要 NFS 服务器 提供服务,必须启动 inet,portmap,nfs 和 mount 这4个守护进程并保持在后台运行。
-----
/etc/init.d/nfs start
/etc/init.d/nfs stop
/etc/init.d/nfs restart
-----
1.配置 NFS 服务器
配置 /etc/exports 文件
/home/uuu *.test.net(rw)
/mnt/app 192.168.1.2/24(ro) 192.168.2.2(rw)
2.配置 NFS 客户端
扫描 NFS Server 目录
showmount -a (或 -e , 或 -d)
showmount -e www.test.net
挂载 目录
mount -t nfs www.abc.net:/home/public /home/xyz/pub
卸载
umount /home/xyz/pub
3.编辑 /etc/fstab 文件
-----
/etc/init.d/nfs start
/etc/init.d/nfs stop
/etc/init.d/nfs restart
-----
1.配置 NFS 服务器
配置 /etc/exports 文件
/home/uuu *.test.net(rw)
/mnt/app 192.168.1.2/24(ro) 192.168.2.2(rw)
2.配置 NFS 客户端
扫描 NFS Server 目录
showmount -a (或 -e , 或 -d)
showmount -e www.test.net
挂载 目录
mount -t nfs www.abc.net:/home/public /home/xyz/pub
卸载
umount /home/xyz/pub
3.编辑 /etc/fstab 文件
相关阅读 更多 +