NFS搭建 A 服务器 ,B客户端
A:
service portmap start
/etc/init.d/nfs restatrt
vim /etc/export
/data/website/pay.baidu.com 172.16.8.0/24(rw,root_squash,all_squash,anonuid=99,anongid=99)
/etc/init.d/nfs restatrt
B:
mount -t nfs -o nolock 172.16.8.28:/data/website/pay.baidu.com pay.baidu.com
A:
chkconfig portmap on
chkconfig nfs on
B:vim /etc/rc.local
mount -t nfs -o nolock 172.16.8.28:/data/website/pay.baidu.com pay.baidu.com
Shutting down NFS mountd: [FAILED]
Shutting down NFS daemon: [FAILED]
Shutting down NFS quotas: [FAILED]
需要开启 portmap
service portmap start