找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 15273|回复: 8

openwrt 如果 实现 nfs ?

[复制链接]
用的 4530r 路由 但只有samba 没有nfs 模块 ! 请教高手如何安装好nfs 服务 呀?

目前 用的 haxc 的固件


root@OpenWrt:/proc# cat filesystems
nodev   sysfs
nodev   rootfs
nodev   bdev
nodev   proc
nodev   tmpfs
nodev   debugfs
nodev   sockfs
nodev   pipefs
nodev   anon_inodefs
nodev   devpts
        squashfs
nodev   ramfs
nodev   jffs2
nodev   overlayfs
nodev   mtd_inodefs
nodev   usbfs
        ext3
        ext2
        ext4
nodev   cifs
nodev   rpc_pipefs
nodev   nfs
nodev   nfsd
我的恩山、我的无线 The best wifi forum is right here.
本帖最后由 99010 于 2013-5-22 01:05 编辑

opkg update
opkg install nfs-kernel-server

# vi /etc/exports
   在该文件里添加如下内容:
   /home/work 192.168.0.*(rw,sync,no_root_squash)
   然后保存退出。
   添加的内容表示:允许ip 地址范围在192.168.0.*的计算机以读写的权限来访问/home/work 目录。
   /home/work 也称为服务器输出共享目录。
   括号内的参数意义描述如下:
   rw:读/写权限,只读权限的参数为ro;
   sync:数据同步写入内存和硬盘,也可以使用async,此时数据会先暂存于内存中,而不立即写入硬盘。
   no_root_squash:NFS 服务器共享目录用户的属性,如果用户是 root,那么对于这个共享目录来说就具有 root 的权限。
   接着执行如下命令,启动端口映射:
   # /etc/init.d/portmap start
   最后执行如下命令启动NFS 服务,此时NFS 会激活守护进程,然后就开始监听 Client 端的请求:
   # /etc/init.d/nfs start
   在NFS 服务器启动后,还需要检查Linux 服务器的防火墙等设置(一般需要关闭防火墙服务),确保没有屏蔽掉NFS 使用的端口和允许通信的主机,主要是检查Linux 服务器iptables,ipchains 等选项的设置,以及/etc/hosts.deny,/etc/hosts.allow 文件。
   我们首先在Linux 服务器上进行NFS 服务器的回环测试,验证共享目录是否能够被访问。在Linux 服务器上运行如下命令:
   # mount –t nfs 192.168.0.20:/home/work /mnt
   # ls /mnt
   命令将Linux 服务器的NFS 输出共享目录挂载到/mnt 目录下,因此,如果NFS 正常工作,应该能够在/mnt 目录看到/home/work 共享目录中的内容。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

99010 发表于 2013-5-22 00:56
opkg update
opkg install nfs-kernel-server

非常的谢谢了,增加了知识
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

不是搞高清的话,samba还是首选啊,方便通用啊。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

99010 发表于 2013-5-22 00:56
opkg update
opkg install nfs-kernel-server

酷!!!!!!!!!!!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

opkg install能装吗??
我的4530R刷的HAXC的固件,nfs-kernel-server一装就变砖。只有让他帮忙编译进固件里才能用。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

酷啊。。。。。。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

我的出现错误了,不知为什么?求大神指点怎么操作
输入/etc/init.d/pormap start
      /etc/init.d/pormap enable
  然后再输入/etc/init.d/nfsd 开启nfs,出现以下提示:
rpc.nfsd:unable to bind inet TCP socket :error 125(Address already in use)
rpc.nfsd:unable to set any sockets for nfsd.
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
论坛的华硕固件 用 nfs 卡顿
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-29 12:24

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表