nfs 测试

nfs 客户端和服务端:

[root@pxc2 nfs-test]# yum -y install  nfs-utils  rpcbind

[root@pxc2 nfs-test]# /etc/init.d/rpcbind start
[root@pxc2 nfs-test]# /etc/init.d/nfs start

[root@pxc2 nfs-test]# vi   /etc/exports
/u01/nfs-test/ 192.168.56.121(rw,sync)   

###121是clint

客户端服务端都建目录:/u01/nfs-test/

 

客户端查看挂载信息:

[root@pxc1 nfs-test]# showmount -e 192.168.56.130
Export list for 192.168.56.130:
/u01/nfs-test 192.168.56.121

 客户端进行挂载目录  mount -t nfs 192.168.56.130:/u01/nfs-test /u01/nfs-test/

查看挂载情况:

[root@pxc1 nfs-test]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 18G 15G 1.9G 89% /
tmpfs 5.0G 224K 5.0G 1% /dev/shm
/dev/sda1 291M 39M 238M 14% /boot
/dev/sdc1 9.9G 955M 8.5G 10% /app
/dev/sdf1 18G 11G 6.8G 60% /opt
/dev/sdd1 8.3G 5.3G 2.6G 68% /weblogic
/dev/sde1 39G 14G 24G 37% /em
/dev/sr0 4.2G 4.2G 0 100% /media/CentOS_6.5_Final
192.168.56.130:/u01/nfs-test 18G 15G 2.0G 89% /u01/nfs-test

 

posted @ 2020-12-02 18:39  beawh  阅读(222)  评论(0编辑  收藏  举报