我的的suse 11 64bit 企业版默认是没有安装nfs的,须要先安装nfs。 spa
1.安装: server
使用镜像安装nfs-kernel-server; ip
2.配置: rpc
vi /etc/exports it
/home/dwt *(rw,sync,no_root_squash,no_all_squash) 配置
注释: service
/software/suse11 是你想共享出去的目录 权限
* 表示能够访问的IP范围,这里是全部ip地址均可以访问,固然你也能够写上hostname来代替。 注释
no_all_squash 保留共享文件的UID和GID(默认)
no_root_squash 表示root用户具备根目录的彻底管理访问权限 exports
3.启动:
service rpcbind start
service nfsserver start
4.访问:
mount -t nfs -o nolock 192.168.7.121:/home/dwt .
cd ..
cd -