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 服务器端到客户端是双向同步的!!!
最新文章
- @dynamic 模拟NSManagedObject类的内部实现,AFN的非常规用法
- 玩转CSS3,嗨翻WEB前端,CSS3伪类元素详解/深入浅出[原创][5+3时代]
- 在Asp.Net MVC中PartialView与EditorFor和DisplayFor的区别
- 装饰模式(Decorate Pattern)
- Servlet、MySQL中文乱码
- 一、 Socket之UDP异步传输文件
- PHP数组操作汇总
- NGUI 3.5课程(五岁以下儿童)button-图片切换
- java课程设计-算术运算测试
- 自定义组件的properties和data
- iTOP-4418开发板Qt系统下运行摄像头测试程序
- Linux CenterOS安装mysql-5.6.12-linux-glibc2.5-x86_64.tar.gz步骤
- Numpy 定义矩阵的方法
- 前端学习 -- Css -- 字体的几个属性学习
- 迭代dict的value
- static关键字的总结
- PAT 甲级 1054 The Dominant Color
- mysql数据的导入与导出
- Vuejs methods how to use
- PAT-A Java实现