- 1、本文档共30页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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
您可能关注的文档
- 环境词汇——Chna Daily.doc
- hack游戏教程.doc
- 【翟鸿森教授经典录】.doc
- WMIC 命令行理方式.doc
- 员工学习分享工作得.ppt
- FreeBSD72支持的网卡驱动列表.doc
- 中国学生健康体检理.ppt
- linux orcle安装操作步骤总结.doc
- 桌面云用户常见问手册.doc
- 口袋怪兽绿宝石攻(超详细).doc
- 2025届衡阳市第八中学高三一诊考试物理试卷含解析.doc
- 2025届湖南省娄底市双峰一中等五校重点中学高三第二次诊断性检测物理试卷含解析.doc
- 天水市第一中学2025届高三第二次联考物理试卷含解析.doc
- 2025届金华市重点中学高三考前热身物理试卷含解析.doc
- 2025届北京市石景山区第九中学高三第四次模拟考试物理试卷含解析.doc
- 江苏扬州市2025届高三第一次模拟考试物理试卷含解析.doc
- 2025届江苏省南通市高级中学高考物理五模试卷含解析.doc
- 广东省清远市华侨中学2025届高三第一次调研测试物理试卷含解析.doc
- 辽宁省凤城市2025届高三第五次模拟考试物理试卷含解析.doc
- 内蒙古巴彦淖尔市重点中学2025届高考仿真卷物理试卷含解析.doc
文档评论(0)