linux 驗證 NFS 是否成功


服務器端----->>客戶端

 

1. 服務器端

 

 

[root@allentuns ~]# ifconfig |grep "Bcast"

 

 

inet addr:192.168.1.4  Bcast:192.168.1.255  Mask:255.255.255.0

 

 

[root@allentuns ~]# cd /web/htdocs/

 

 

[root@allentuns htdocs]# ls

 

 

[root@allentuns htdocs]# cat /etc/issue >>  index.html

 

 

[root@allentuns htdocs]# ll

 

 

total 4

 

 

-rw-r--r--. 1 root root 47 May  3 19:06 index.html

 

 

2. 查看是否同步到客戶端

 

 

[root@allentuns ~]# ifconfig |grep "Bcast"

 

 

inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0

 

 

[root@allentuns ~]# cd /mnt/

 

 

[root@allentuns mnt]# ll

 

 

total 4

 

-rw-r--r--. 1 root root 47 May  3 19:06 index.html

 

客戶端----->>服務器端

 

1. 客戶端創建文件

 

[root@allentuns mnt]# ifconfig |grep "Bcast"

 

inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0 [root@allentuns mnt]# touch test.php

[root@allentuns mnt]# ll

 

 

-rw-r--r--. 1 root       root       47 May  3 19:06 index.html

 

-rw-r--r--. 1 nfsnobody nfsnobody  0 May  3 19:10 test.php

 

2. 服務器端看是否已經同步

 

[root@allentuns htdocs]# ifconfig |grep "Bcast"

inet addr:192.168.1.4  Bcast:192.168.1.255  Mask:255.255.255.0 [root@allentuns htdocs]# ll

 

 

total 4

 

 

-rw-r--r--. 1 root       root       47 May  3 19:06 index.html

 

 

-rw-r--r--. 1 nfsnobody nfsnobody  0 May  3 19:10 test.php

 

 

以上兩點證明:nfs 服務器端到客戶端是雙向同步的!!!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM