网站大量收购闲置独家精品文档,联系QQ:2885784924
  1. 1、本文档共30页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
nfs和nis配

nfs和nis配置 NFS服务器配置 安装相关的rpm包 nfs-utils-1.0.9-16.el5 编辑vim /etc/exports在里面添加共享目录 /tmp *(ro,sync) 把此目录共享,*号代表所有的主机可以挂载次目录,然后是read-only /data *.(ro,sync)(这个网域的主机都可以) (rw,sync)(这个主机可以写) /data1 /(sync)(没有注名,默认情况下也是ro) sync是synchronize简写,是同步的意思,是说/tmp目录有更新时,通知其他的client端. 修改完/etc/exports里面的设定后,可以执行exportfs -r来是设定生效。 service nfs restart showmount -e (客户端操作)可以查看服务器分享的目录 mount-t nfs :/tmp /mnt/nfs 在client挂载的方法 nis服务器配置 服务器端: 安装相关的rpm包 rpm -ivh ypserv-2.19-3.i386.rpm rpm -ivh portmap-4.0-63.i386.rpm yppasswdd 编辑/etc/sysconfig/network 添加 NISDOMAIN=notexample(名字随便起) (vim /var/yp/securenets添加 55 允许上面的网段的主机访问nis服务器) 或者执行 [root@server1 ~]# cp /usr/share/doc/ypserv-2.19/securenets /var/yp/securenets然后编辑/var/yp/securenets 对访问设置默写要求 service ypserv start 或者/etc/init.d/portmap restart 编辑vim /var/yp/Makefile # # Makefile for the NIS databases # # This Makefile should only be run on the NIS master server of a domain. # All updated maps will be pushed to all NIS slave servers listed in the # /var/yp/ypservers file. Please make sure that the hostnames of all # NIS servers in your domain are listed in /var/yp/ypservers. # # This Makefile can be modified to support more NIS maps if desired. # # Set the following variable to -b to have NIS servers use the domain # name resolver for hosts not in the current domain. This is only needed, # if you have SunOS slave YP server, which gets here maps from this # server. The NYS YP server will ignore the YP_INTERDOMAIN key. #B=-b B= # If we have only one server, we dont have to push the maps to the # slave servers (NOPUSH=true). If you have slave servers, change this # to NOPUSH=false and put all hostnames of your slave servers in the file # /var/yp/ypservers. NOPUSH=true # We do not put password entries with lower UIDs (the root and system # entries) in the NIS password database, for security. MINUID is the # lowest uid that will be included in the password maps. If you # create shadow maps, the UserID for

文档评论(0)

pep2233 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档