zoukankan      html  css  js  c++  java
  • NFS 服务器的配置

    1. 安装 NFS 服务器

    [root@localhost btools]#rpm -q nfs-utils

    如果没有安装,从对应 Linux 操作系统版本的安装光盘上找到 nfs-utils 的安装包.Fedora 5 中的安装包

    名称为 nfs-utils-1.0.8.rc2-4.FC5.2.i386.rpm。下面以该安装包为例说明: [root@localhost btools]#rpm -ivh nfs-utils-1.0.8.rc2-4.FC5.2.i386.rpm

    2. 配置 NFS 服务器

    [root@localhost btools]#vi /etc/exports

    #加入要允许被另外计算机 mount 的目录:

    #/home/arm/dev_home/tmp 为被另外计算机 mount 的目录

    #192.168.1.134 允许另外计算机 mount 的 IP

    #rw,sync,no_root_squash 表示访问限制,更详细说明见相关手册.

    /home/arm/dev_home/tmp 192.168.1.134(rw,sync,no_root_squash)

    3. 启动 NFS 服务器

    第一启动 NFS 服务器时用下面命令.

    [root@localhost btools]#/etc/init.d/nfs start

    如果你已经启动了 NFS 服务器时,并且重新修改了/etc/exports 文件,用如下命令使新加入的目录生效: [root@localhost btools]#/etc/init.d/nfs reload

    4. 测试 NFS 服务器

    [root@localhost btools]#netstat -a | grep nfs

    5. 显示被 export 出的目录列表 [root@localhost btools]#exportfs

  • 相关阅读:
    android 开机启动
    android 禁用home键盘
    android 获取各种窗体高度
    android 横竖屏切换
    android 还原短信
    android dp和px之间转换
    android BitMap、Drawable、inputStream及byte[] 互转
    手机卫士项目
    Android01_Android入门
    Android02_Activity
  • 原文地址:https://www.cnblogs.com/fanweisheng/p/11102966.html
Copyright © 2011-2022 走看看