–1. 安装软件包
–1.1 检查是否存在软件包
rpm -qa | grep rpcbind
rpm -qa | grep nfs
–1.2 如不存在,则进行安装
yum install -y rpcbind
yum install -y nfs-utils
–2. 配置共享目录
–2.1 新建NFS目录
mkdir -p /NFS
chown -R nobody:nobody /NFS
chmod 666 /NFS
–2.2 编辑export文件
echo "/NFS 192.168.56.0/24(rw,no_root_squash,sync,insecure)" >> /etc/exports
–2.3 启动nfs,配置自启
service rpcbind start
service nfs start
chkconfig nfs on
–3. 关闭防火墙
service iptables stop
chkconfig iptables off
–4. 使用端(Oracle Server)挂载
yum install -y rpcbind
yum install -y nfs-utils
service rpcbind start
showmount -e 192.168.56.222
mkdir -p /nfs_222
mount -t nfs -o rw,bg,hard,intr,proto=tcp,vers=3,rsize=65536,wsize=65536,timeo=600 192.168.56.222:/NFS /nfs_222