Linux下nfs服务器搭建
2010-11-29 18:59
281 查看
在/etc目录下,做如下操作:
(1)cd /etc
vi exports
/home *(sync,rw,no_root_squash)
/opt *(sync,rw,no_root_squash)
(2)重启nfs
service nfs restart
注意:防火墙的设置。如出现System Error: No route to host.则说明是防火墙开启所致。
经过以上几步操作后,nfs也就建好了,也就是相当于windows中的共享了,下一步就可以mount了。
附:/home *(sync,rw,no_root_squash)参数介绍,参数之间用逗号隔开:
/home :需要共享的目录
sync :所有数据在请求时写入共享
rw :读写访问
no_root_squash :登入到NFS主机的用户如果是root用户,他就拥有root的权限.
(1)cd /etc
vi exports
/home *(sync,rw,no_root_squash)
/opt *(sync,rw,no_root_squash)
(2)重启nfs
service nfs restart
注意:防火墙的设置。如出现System Error: No route to host.则说明是防火墙开启所致。
经过以上几步操作后,nfs也就建好了,也就是相当于windows中的共享了,下一步就可以mount了。
附:/home *(sync,rw,no_root_squash)参数介绍,参数之间用逗号隔开:
/home :需要共享的目录
sync :所有数据在请求时写入共享
rw :读写访问
no_root_squash :登入到NFS主机的用户如果是root用户,他就拥有root的权限.
相关文章推荐
- Linux下搭建NFS服务器
- Linux5.9下NFS服务器的搭建
- linux 搭建NFS服务器
- Linux变量与samba服务器、nfs服务器搭建
- 2Ubuntu/RedHat下nfs服务器搭建,Linux多台电脑共享目录
- linux下NFS文件共享服务器搭建
- linux服务___Linux下NFS服务器的搭建与配置
- linux如何搭建nfs服务器
- 搭建linux NFS服务器(转自蔡元纪老师的文章)
- Linux之我有你也有-共享平台NFS服务器搭建
- Linux下NFS服务器的搭建与配置
- Linux搭建 nfs 服务器
- 2-5-RHEL6.5搭建NFS服务器案例分析与总结(Red Hat Enterprise Linux Server6.5)@
- Linux 下搭建NFS服务器
- NFS攻略 - Linux文件服务器搭建与使用实例
- RedHat Enterprise Linux 6.1(RHEL)搭建ArcGIS 10.1 for Server集群(二)NFS服务器架设
- 使用Vagrant在Windows平台搭建嵌入式Linux开发环境(3)nfs服务器搭建
- linux下搭建NFS文件服务器及磁盘配额 A
- linux下搭建NFS文件服务器及磁盘配额 B
- Linux下NFS服务器的搭建与配置