Linux NFS Server配置
来源:互联网 发布:程序员招聘信息 编辑:程序博客网 时间:2024/05/18 19:42
配置nfs
rpm -qa | grep nfs
vi /etc/exports
/mnt/share *(rw, async,no_root_squash)
exportfs -rv (这个命令可以验证我们设置的配置文件/etc/exports是否正确
chkconfig --list | grep nfs
chkconfig nfs on
service nfs restart
错误: 客户端无法写入文件
解决: 发现exports目录权限中,有这么一个参数no_root_squash。其作用是:登入 NFS 主机使用分享目录的使用者,如果是 root 的话,那么对于这个分享的目录来说,他就具有 root 的权限!。默认情况使用的是相反参数 root_squash:在登入 NFS 主机使用分享之目录的使用者如果是 root 时,那么这个使用者的权限将被压缩成为匿名使用者,通常他的 UID 与 GID 都会变成 nobody 那个身份。
因为我的客户端是使用root登录的,自然权限被压缩为nobody了,难怪无法写入。将配置信息改为: /testfs 10.0.0.0/8(rw,no_root_squash)
据说有点不安全,但问题是解决了。
参考:http://www.2cto.com/os/201304/202056.html
http://www.blogjava.net/gf7/archive/2012/12/12/392843.html
建议:
1.使用NFS,就要使用portmap,NFS严重依赖于portmap,所以不要试图去停止它(portmap)。
2.当不能umount /nfs 分区时,试着使用umount -f /nfs,一般都能成功。
3.当umount -f /nfs不能umount时,可以试试umount -l /nfs. umount -l是最终级的umount。
0 0
- Linux NFS Server配置
- linux下,nfs server的配置
- CentOS配置NFS server
- ubuntu 配置nfs server
- Ubuntu配置NFS server
- Ubuntu 配置NFS-Server
- 在Fedora Linux中用GUI配置NFS Server
- 简单的NFS Server 配置
- linux 服务器配置 NFS
- 配置 Linux 的 NFS
- 关于Linux NFS 配置
- 配置 Linux 的 NFS
- linux nfs配置
- Redhat Linux NFS配置
- Linux nfs 服务端配置
- linux NFS 配置步骤
- linux nfs 配置
- linux NFS配置文档
- SQL多表联合查询实现插入/更新/删除
- mysql进阶(十八)完全卸载mysql数据库图文教程
- 开源的轻量级JSON存储Kinto介绍
- Spirng+SpringMVC+Maven+Mybatis+MySQL项目搭建
- The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class
- Linux NFS Server配置
- Sigsetjmp 和 Siglongjmp
- 【IPC通信】基于管道的popen和pclose函数
- 正则表达式大全
- 如何在Eclipse中查看Android源代码
- 90.Examine the structure and data in the PRICE_LIST table:
- 关于Xutils框架出现无法访问HttpRequestBase 找不到org.apache.http.client.methods.HttpRequestBase解决方案
- 使用VB对word文档进行格式调整
- C库函数 - memset()