免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1387 | 回复: 0
打印 上一主题 下一主题

CentOS上创建NFS服务 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-02-11 16:11 |只看该作者 |倒序浏览
利用Linux架设NFS服务器一文,很不错,值得参考
http://www.sofee.cn/blog/2006/09/29/46/

服务器端

NFS服务器分配IP为192.168.1.100
NFS客户端分配IP为192.168.1.200
nfs-server.example.com配置如下:
[root@nfs-server ~]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=nfs-server.example.com
[root@nfs-server ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1   localhost.localdomain localhost
192.168.1.200   nfs-client.example.com   nfs-client
默认安装下已经装好NFS服务了,所以只用开启服务器即可。
[root@nfs-server ~]# chkconfig nfs on
比如要共享/data/目录:
[root@nfs-server ~]# mkdir /data
[root@nfs-server ~]# vi /etc/exports
/data/ 192.168.1.200(rw,no_root_squash,no_all_squash,sync)
现在就可以启动NFS服务了。
[root@nfs-server ~]# service nfs start

服务器端结束



本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/1914/showart_1824234.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP