Fedora9 NFS配置
1 首先配置共享目录
vim /etc/exports (首次打开是空的文件)
编辑如下
/home/yao/nfsshare/rootfs_qtopia_qt4 *(rw,sync,no_root_squash)
其中 /home/yao/nfsshare/rootfs_qtopia_qt4 是共享目录,需要自己建立
*(rw,sync,no_root_squash) 这个是权限设置,*表示所有客户机都可以挂在到本机上,
rw表示具有读写权限
no_root_squash表示挂在机具有root权限
2 启动nfs服务
启动nfs需要关闭防火墙,输入setup,选择firewall 关闭之。
输入 /etc/init.d/nfs start 可以启动nfs。
输入serviceconf 启动图形界面,找到nfs,点击enable
3 验证启动成功
输入
mount -t nfs localhost:/home/yao/nfsshare/rootfs_qtopia_qt4 /mnt/
将共享目录挂载到mnt下
如果没有出现错误,那么mnt下的内容和共享目录是一样的