NFS+mount挂载

原文链接: https://blog.csdn.net/zhangjunli/article/details/81014211

NFS+mount挂载
https://blog.csdn.net/zhangjunli/article/details/81014211

查看nfs配置挂载的目录

cat /var/lib/nfs/etab 
[root@master ~]# cat /var/lib/nfs/etab 
/data/share     192.168.0.0/16(rw,sync,wdelay,hide,nocrossmnt,secure,root_squash,all_squash,no_subtree_check,secure_locks,acl,no_pnfs,anonuid=0,anongid=0,sec=sys,rw,secure,root_squash,all_squash)
[root@master ~]# 


[root@master ~]# showmount -e
Export list for master:
/data/share 192.168.0.0/16

查看nfs是否启动

[root@master ~]# rpcinfo -p|grep nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100227    3   tcp   2049  nfs_acl
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100227    3   udp   2049  nfs_acl
[root@master ~]# 

你可能感兴趣的:(linux)