Chinaunix首页 | 论坛 | 博客

分类: LINUX

2012-10-28 13:34:46

    NFS 是 Network File System 的简写,即网络文件系统。NFS 允许一个系统在网络上与他人共享目录和文件。通过使用 NFS,用户和程序可以像访问本地文件一样访问远端系统上的文件。在嵌入式开发中,NFS 服务常用于内核启动后挂载根文件系统的方式。

基于 Red Hat Enterprise Linux 5 的 NFS 服务器构建:
1.查看 NFS 服务是否安装
    用 setup 命令 或 rpm -qa | grep nfs
2.安装 NFS 服务器
    rpm -ivh nfs-utils-1.0.9-24.el5.i386.rpm
3.配置 NFS 服务器
    vim /etc/exports    输入如下内容

/nfs 192.168.1.*(rw,sync,no_root_squash)


4.查看 NFS 服务是否启动
    netstat -a | grep nfs
5.启动或重启 NFS 服务器
    /etc/init.d/nfs start  /etc/init.d/nfs restart


基于 Ubuntu 11.10 的 NFS 服务器构建:
1.安装 NFS 服务器
    sudo apt-get install nfs-kernel-server
2.配置 NFS 服务器
    sudo vim /etc/exports    输入如下内容

/nfs 192.168.1.*(rw,sync,no_root_squash)
3.启动 NFS 服务器
    sudo service nfs-kernel-server start

                       ——忠于梦想 勇于实践    linux_xpj@opencores.org
阅读(1462) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~