1:服务器端
安装如下几个包:portmap nfs-user-server nfs-kernel-server
[code]kcn-mw:/#apt-get install portmap
kcn-mw:/#apt-get install nfs-user-server
kcn-m2:/#apt-get install nfs-kernel-server[/code]
2:客户端
安装如下的包:nfs-common
[code]kcn-mw:/#apt-get install nfs-common[/code]
3:配置文件
[code]kcn-mw:/#vi /etc/exports
/nfs *(rw,no_root_squash,no_all_squash,sync)[/code]
4:启动nfs服务
[code]kcn-mw:/#/etc/init.d/portmap start
kcn-mw:/#/etc/init.d/nfs-user-server start
kcn-mw:/#/etc/init.d/nfs-kernel-server start[/code]
5:测试
[code]kcn-mw:/#mount -t nfs 192.168.x.x:/nfs /mnt[/code]