ubuntu12.04配置NFS服务详解
来源:互联网 发布:视频录制软件下载 编辑:程序博客网 时间:2024/06/06 05:14
1:安装nfs
sudo apt-get install nfs-kernel-server
2:配置服务
sudo vim /etc/exports
在末尾添加
/home/jyg *(rw,sync,no_root_squash)
解释:
注:nfs允许挂载的目录及权限,在文件/etc/exports中进行定义,各字段含义如下:/home/jyg:要共享的目录* :允许所有的网段访问rw :读写权限sync:资料同步写入内在和硬盘no_root_squash:nfs客户端共享目录使用者权限
3:重启服务
sudo /etc/init.d/portmap restart sudo /etc/init.d/nfs-kernel-server restart
4:测试目录
showmount -e
如果输出
Export list for xgc-VirtualBox:/home/jyg *
就说明正确
5:测试挂载
sudo mount -t nfs localhost:/home/jyg /mnt
通过指令
ls /mnt
查看/mnt目录下是否和/home/jyg目录下一样
卸载挂载目录
sudo umount /mnt
- ubuntu12.04配置NFS服务详解
- ubuntu12配置nfs服务
- 关于Ubuntu12.04中配置NFS服务
- VMware虚拟机下ubuntu12配置NFS服务
- ubuntu12.04的NFS配置
- Ubuntu12.04下NFS配置
- ubuntu12.04的NFS配置
- ubuntu12.04的NFS配置
- ubuntu12.04的NFS配置
- ubuntu12.04的NFS配置
- ubuntu12.04的NFS配置
- ubuntu12.04的NFS配置
- ubuntu12.04的NFS配置
- ubuntu12.04的NFS配置
- ubuntu12.04的NFS配置
- ubuntu12.04的NFS配置
- Ubuntu12.04的NFS配置
- ubuntu12.04的NFS配置
- ubuntu切换中英文通用方法,ubuntu中文语言
- ubuntu截图工具及GNOME的使用及类似qq截图快捷键
- 双系统xp和ubuntu,删除ubuntu
- Package vim is not available, but is referred to by another package及我的vim配置
- 解决ubuntu10.04不能上网
- ubuntu12.04配置NFS服务详解
- 用变量来命名Android SQLite 表
- 编译android内核和文件系统,已经安装jdk,提示build/core/config.mk:268: *** Error: could not find jdk tools.jar
- ubuntu文件夹建立软链接方法
- CCS不能显示变量或函数定义即symbol definition not found
- Your Firefox profile cannot be loaded. It may be missing or inaccessible
- 解决ubuntu没有/var/log/messages的问题
- px转dp,dp转px
- vim使用手册出现 找到 tag:1/9或更多 查看别的定义的方法