- 3
- 0
- 约13.33万字
- 约 30页
- 2016-12-03 发布于河南
- 举报
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
- 小区绿化施工协议书.docx
- 墙面施工协议书.docx
- 1 古诗二首(课件)--2025-2026学年统编版语文二年级下册.pptx
- (2026春新版)部编版八年级道德与法治下册《3.1《公民基本权利》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《4.3《依法履行义务》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.2《按劳分配为主体、多种分配方式并存》PPT课件.pptx
- (2026春新版)部编版八年级道德与法治下册《6.1《公有制为主体、多种所有制经济共同发展》PPT课件.pptx
- 初三教学管理交流发言稿.docx
- 小学生课外阅读总结.docx
- 餐饮门店夜经济运营的社会责任报告(夜间贡献)撰写流程试题库及答案.doc
最近下载
- 【花生十三】25公务员考试资料分析速算练习册及速算过程.pdf VIP
- mst2016说明书.pdf VIP
- 口腔科课件洁治.pptx
- 2025兴安盟公安局招聘165名留置看护警务辅助人员备考试题及答案解析.docx VIP
- 35KV变电站毕业设计(完整版).doc VIP
- AP微观经济学 2012年真题 (选择题+问答题) AP Microeconomics 2012 Released Exam and Answers (MCQ+FRQ).pdf VIP
- 上海师范大学天华学院公共课《大学计算机基础》期末试卷A(有答案).docx VIP
- 高中生对AI 技术应用的态度与认知调查问卷.docx VIP
- 2025年度”五个方面“专题组织生活会个人对照检查发言材料.docx VIP
- 南方医科大学各专业实习大纲汇编.pdf VIP
原创力文档

文档评论(0)