server(10.1.1.1):
yum install nfs-utils rpcbind
vi /etc/exports
/opt/test/ 10.1.1.2(ro,no_root_squash,no_all_squash,sync)
service rpcbind start
service nfs start
client(10.1.1.2):
yum install showmount -y
showmount -e 10.1.1.1
mount -t nfs 10.1.1.1:/opt/test /opt/test