zoukankan      html  css  js  c++  java
  • 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 服务器端到客户端是双向同步的!!!

  • 相关阅读:
    sql server 修改/查看 主键初始值
    国内外邮箱正则验证及js示例
    修改表中主键 标识/初始值
    主角场景Shader效果:遮挡透明
    主角场景效果:人物阴影
    主角场景Shader效果:描边
    主角场景Shader效果:光影
    Unity ZTest深度测试 & ZWrite深度写入
    天气系统:雨、雪
    UnityShader 序列帧动画效果
  • 原文地址:https://www.cnblogs.com/fanweisheng/p/11327625.html
Copyright © 2011-2022 走看看