NFS Configuration

Server Configuration:

vim /etc/exports
/home/public 10.240.135.18(rw,sync) 10.240.135.19(ro,sync)


Make share available:
exportfs –ra


Start NFS service:
service nfs start


Check:
cat /proc/fs/nfs/exports


View messages:

/home/public     10.240.135.18(rw,root_squash,sync,wdelay,acl) # 10.240.135.18
/home/public    10.240.135.19(ro,root_squash,sync,wdelay,acl) # 10.240.135.19


Client servers’ configuration

mount 10.240.135.118:/home/public /home/public/

你可能感兴趣的:(java,vim)