nfs使用点滴
时间:2005-09-08 来源:blue_stone
在debian下如果需要使用nfs,需要安装的软件包有:nfs-common,nfs-kernel-server(或者nfs-user-server)
在服务器上需要配置的主要文件是/etc/exports,如添加如下行
/foo/bar abc.def.net(ro) ghi.def.net(rw)
则允许abc.def.net以只读的方式访问/foo/bar,ghi.def.net以读写的方式 访问/foo/bar
如果需要root用户以root的方式访问nfsserver上的文件系统,则需要使用(rw,no_root_squash)
查看导出的文件系统使用
show mount -e ipaddress
在服务器上需要配置的主要文件是/etc/exports,如添加如下行
/foo/bar abc.def.net(ro) ghi.def.net(rw)
则允许abc.def.net以只读的方式访问/foo/bar,ghi.def.net以读写的方式 访问/foo/bar
如果需要root用户以root的方式访问nfsserver上的文件系统,则需要使用(rw,no_root_squash)
查看导出的文件系统使用
show mount -e ipaddress
相关阅读 更多 +