红联Linux门户
Linux帮助

Ubuntu 7.10下配置NFS

发布时间:2007-09-18 00:29:42来源:红联作者:vsdotegnu
做嵌入式开发需要用到NFS,在Ubuntu 7.10上配置过程如下:

1、安装nfs服务器
apt-get install nfs-kernel-server

2、修改nsf配置文件
vi /etc/exports
在文件中添加nfs的目录格式如下
/home/linux/xdvr/bin 192.168.1.124(rw,sync,no_root_squash)
保存退出

exportfs -rv

3、修改该目录(及其子目录)的权限
chmod 777 -R /home/linux/xdvr/bin

4、修改/etc/hosts
把目标板的ip和名称加到列表中

hosts hosts.allow hosts.deny
jason@tvt:/home/linux/xdvr/td2408ui$ cat /etc/hosts
192.168.1.124 NDVR31XX
127.0.0.1 localhost
127.0.1.1 tvt

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

5、重启nfs
/etc/init.d/nfs-kernel-server restart

6、完成
mount -o nolock -t nfs 192.168.1.107:/home/linux/xdvr/bin /root搞定。
文章评论

共有 0 条评论