2015年(3)
分类: LINUX
2015-12-08 15:08:56
lyhabc2015-12-29 18:19:59
安装两个包
yum install -y nfs-utils rpcbind
启动 注意启动顺序 先rpcbind后nfs
/etc/init.d/rpcbind start; /etc/init.d/nfs start
配置
vim /etc/exports
/home/ 192.168.137.0/24(rw,sync,all_squash,anonuid=501,anongid=501) //只有客户端机器501用户才有读写权限,连root也没有权限建文件,写文件,读文件 ,除非服务器端目录权限是777
exportfs -arv
showmount -e 192.168.137.10
#启动服务
service nfs start
service rpcbind&nb