ubuntu NFS安装
来源:互联网 发布:梦幻西游数据库 编辑:程序博客网 时间:2024/05/17 06:53
解决mount.nfs:access denied by server while mounting
经早上调试,已解决问题
最近学习NFS,用本地测试.
以下是我的测试过程
环境 ubuntu 10.4 vm 7.1
终端
ifconfig 得到 ubuntu资料
INET ADDR 192.168.0.4
BCAST 192.168.0.255
MASK 255.255.255.0
一 安装NFS
$ sudo apt-get install nfs-kernel-server
$ sudo apt-get install nfs-common
二 配置NFS
1 $ sudo dpkg-reconfigure portmap , 对Should portmap be bound to the loopback address? 选N
2 $ sudo /etc/default/portmap 末行清除 "-i 127.0.0.1"
三 配置hosts.deny
$ sudo vi /etc/hosts.deny
文本末添加
### NFS DAEMONS
portmap: ALL
lockd: ALL
mountd: ALL
rquotad: ALL
statd: ALL
四 配置hosts.allow
$ sudo vi /etc/hosts.allow
文本末加入
### NFS DAEMONS
portmap: 192.168.0.
lockd: 192.168.0.
rquotad: 192.168.0.
mountd: 192.168.0.
statd: 192.168.0.
$ sudo /etc/init.d/portmap restart 重启portmap daemon.
显示如下
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart portmap
portmap start/running, process XXXX
五 配置/etc/exports
$ sudo vi /etc/exports
文本末添加
/home/work *(rw,sync,no_root_squash)
chmod 777 -R /home/work
$ sudo showmount -e
显示 clnt-create : RPC : Program not registered
$ sudo exportfs -r 更新
$ sudo showmount 192.168.0.4 -e
显示
Export list for 192.168.0.4:
/home/work *
六 启用
$ sudo /etc/init.d/nfs-kernel-server restart 重启nfs服务
显示如下
* Stopping NFS kernel daemon [ OK ]
* Unexporting directories for NFS kernel daemon... [ OK ]
* Exporting directories for NFS kernel daemon...
exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/home/work".
Assuming default behaviour ('no_subtree_check').
NOTE: this default has changed since nfs-utils version 1.0.x
* Starting NFS kernel daemon [ OK ]
挂载
mount -t nfs 192.168.0.4:/home/work /nfsmnt
mount -t nfs 192.168.0.4:/home/work /nfsmnt -o nolock
- Ubuntu下nfs安装
- Ubuntu安装NFS服务器
- Ubuntu下安装nfs
- ubuntu下NFS安装
- ubuntu安装nfs server
- ubuntu NFS安装
- ubuntu nfs安装
- ubuntu安装nfs服务
- Ubuntu 12.04 NFS安装
- ubuntu nfs 安装
- ubuntu下安装NFS
- ubuntu 安装NFS
- ubuntu nfs的安装
- Ubuntu 12.04 NFS安装
- ubuntu nfs安装
- ubuntu 12.04 安装nfs
- Ubuntu 12.04 NFS安装
- Ubuntu 12.04 NFS安装
- 超长查询,不同的查询条件,不同的参数,查出来的数据放在一个临时表中的方法
- 基于Oracle,SQL语句优化方法30例(03)
- 硬件检测:安装、停用
- 数字三角开问题
- 教你完成最简单的linux驱动 hello world
- ubuntu NFS安装
- 开通物料主记录区间,会计区间
- 乔布斯经典语录精选:对产品、对手和生死感悟
- 实用数据绑定: 往返和 XML 到 Java 的转换 2
- Activemq 问题记录1
- 编译php错误 make: *** [ext/mysqli/mysqli.lo] Error 1
- 更新多条数据
- iPhone开发--用UITextField实现搜索框
- 实用数据绑定: 往返和 XML 到 Java 的转换 3