centos 6(在CentOS 6.5当中,portmap服务由rpcbind负责) :
1 | yum -y install nfs-utils rpcbind |
====================
yum install portmap nfs-utils-lib nfs-utils
service portmap startservice nfs startvi /etc/exports service portmap startservice nfs startvi /etc/exports showmount -e 192.168.1.XXXmountexportfs vi /etc/exports service portmap restartservice nfs restartexportfsvi /etc/exports
mount -t nfs 192.168.1.YYY:/u01/rman /u01/rman
vi /etc/exports
service portmap startservice nfslock startservice nfs startshowmount -eshowmount -e more /etc/exports showmount -e
service portmap restart
service nfs restartshowmount -e 192.168.1.YYYmount -t nfs 192.168.1.YYY:/dataBak_nfs /mount -t nfs 192.168.1.YYY:/dataBak_nfs /dataBak_nfsmkdir dataBak_nfsmount -t nfs 192.168.1.YYY:/dataBak_nfs /dataBak_nfscd /dataBak_nfs/# vi /etc/rc.d/rc.local
service portmap start
service nfs startmount -t nfs 192.168.1.YYY:/dataBak_nfs /dataBak_nfs