安装rpm :
|
两台都安装: yum -y install nfs-utils rpcbind 主机ap1 /etc/exports 添加: /concnfs/ebsconc 10.10.10.86/24(rw,sync,no_root_squash,no_all_squash) [root@jt-ebsapp01 etc]# exportfs -r [root@jt-ebsapp01 etc]# service rpcbind start [root@jt-ebsapp01 etc]# service nfs restart [root@jt-ebsapp01 etc]# chkconfig nfs on
主机AP2 [root@jt-ebsapp02 ~]# showmount -e 10.10.10.85 Export list for 10.10.10.85: /concnfs/ebsconc 10.10.10.86/24
|
|
/oraerpapp/nfs 10.10.10.0/24(rw,sync,no_root_squash,no_all_squash) |
下
|
查看服务器抛出的共享目录信息 [root@bogon ~]# showmount -e 192.168. 2.203 Export list for 192.168. 2.203 : /data/lys 192.168. 2.0/ 24 为了提高NFS的稳定性,使用TCP协议挂载,NFS默认用UDP协议 [root@bogon ~]# mount -t nfs 192.168. 2.203:/data/lys /lys -o proto=tcp -o nolock
|
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69959726/viewspace-2679399/ ,如需转载,请注明出处,否则将追究法律责任。