Ubuntu NFS服务器的配置
来源:互联网 发布:ipod touch4下载软件 编辑:程序博客网 时间:2024/06/05 18:38
#sudo apt-getinstall nfs-kernel-server
2、配置/etc/exports(这是NFS服务器最主用的配置文件)
打开/etc/exports文件,在末尾加入:
/nfsboot *(rw,sync,no_root_squash)
注:nfs允许挂载的目录及权限,在文件/etc/exports中进行定义,各字段含义如下:
/nfsboot:要共享的目录
*:允许所有的网段访问
rw:读写权限
sync:资料同步写入内在和硬盘
no_root_squash:nfs客户端共享目录使用者权限
若/etc/exports为只读权限,则执行 sudochmod 666 /etc/exports。
重启服务:
#sudo /etc/init.d/portmap restart
#showmount-e
现在可以在本机上试一下:
#sudo mount -t nfs localhost:/nfsboot /mnt
注:localhost为本机linux的IP地址
这样就把共享目录挂到了/mnt目录,取消挂载用:
#sudo umount /mnt
如果用在嵌入式设备上挂载,要加上参数-onolock
我在开发板上使用的挂载命令:
mount -tnfs
- Ubuntu NFS服务器的配置
- Ubuntu NFS服务器的配置
- Ubuntu NFS服务器的配置
- Ubuntu NFS服务器的配置
- Ubuntu NFS服务器的配置
- Ubuntu NFS服务器的配置
- ubuntu nfs服务器配置
- Ubuntu配置NFS服务器
- ubuntu配置NFS服务器
- ubuntu nfs服务器配置
- ubuntu 配置nfs服务器
- ubuntu服务器nfs配置
- Ubuntu配置nfs服务器
- ubuntu 配置nfs 服务器
- ubuntu 配置 nfs 服务器
- ubuntu 配置 nfs 服务器
- ubuntu下NFS服务器的配置
- ubuntu 8.10配置NFS服务器
- 寻找数组中最大值
- A. Playing with Paper
- 用awk处理数据的简单脚本(一)
- Linux进阶:让效率翻倍的Bash技巧(一)
- Excel Sheet Column Title
- Ubuntu NFS服务器的配置
- 20150318 N1
- 关于matlab中数据拟合的一些函数polyfit()
- Web前端开发十日谈
- Linux系统下Hadoop2.6版本编译
- COCOS-单点触摸
- 关于职业化的一些思考
- 大型网站的灵魂——性能
- 1049 棋盘染色