设为首页
收藏本站
用户名
Email
自动登录
找回密码
密码
登录
注册
快捷导航
平台
Portal
论坛
BBS
文库
项目
群组
Group
我的博客
Space
搜索
搜索
热搜:
shell
linux
mysql
本版
用户
LinuxSir.cn,穿越时空的Linuxsir!
»
论坛
›
Linux 综合讨论区 —— LinuxSir.cn
›
计算机认证考试学习与经验交流
›
Nis Nfs Autofs结合试验步骤
返回列表
查看:
6569
|
回复:
5
Nis Nfs Autofs结合试验步骤
[复制链接]
comdaze
comdaze
当前离线
积分
13
IP卡
狗仔卡
发表于 2005-6-14 11:27:04
|
显示全部楼层
|
阅读模式
1、配置nis,nfs服务器
(1)设定nisdomain
添加/etc/sysconfig/network
NISDOMAIN=cluster
并且保证和/etc/hosts设定主机名一致
HOSTNAME=linux1
ip地址:10.1.1.187
(2)修改/var/yp/Makefile决定需要共享的数据
passwd,group..
(3)chkconfig portmap on.
chkconfig ypserv on
chkconfig yppasswdd on
service portmap start
service ypserv start
service yppasswdd start
service iptables stop
/etc/hosts.allow /etc/hosts.deny为空
(4)mkdir /rhome
useradd -d /rhome/sean sean
passwd sean
(5)/usr/lib/yp/ypinit -m建立并安装nis数据库
service ypserv restart
service yppasswdd restart
(6)vi /etc/exports
/rhome 10.1.1.0/255.255.255.0(rw,sync)
service nfs restart
chkconfig nfs on
exportfs -r
exportfs -v
showmount -e localhost
2、设定nis客户端,利用autofs自动挂接nis主机家目录
1、chkconfig portmap on
service portmap start
利用authconfig加入cluser域
2、mkdir /rhome
vi /etc/auto.master
/rhome /etc/auto.misc --timeout=60
vi /etc/auto.misc
* -ro,soft,intr linux1:/rhome/&
service autofs start
3、用sean登录nis客户端
login:sean
password:***
pwd
/rhome/sean
回复
使用道具
举报
提升卡
置顶卡
沉默卡
喧嚣卡
变色卡
显身卡
comdaze
comdaze
当前离线
积分
13
IP卡
狗仔卡
楼主
|
发表于 2005-6-14 11:31:59
|
显示全部楼层
kevin,看看有问题吗?
回复
支持
反对
使用道具
举报
显身卡
comdaze
comdaze
当前离线
积分
13
IP卡
狗仔卡
楼主
|
发表于 2005-6-14 15:42:39
|
显示全部楼层
不好意思,刚才才看到这个问题以前详细讨论过,在这里献丑了
http://www.linuxsir.cn/bbs/showthread.php?t=182417
回复
支持
反对
使用道具
举报
显身卡
richardlee
richardlee
当前离线
积分
2
IP卡
狗仔卡
发表于 2007-11-21 17:11:56
|
显示全部楼层
anyway, it is helpful to me! thanks.
回复
支持
反对
使用道具
举报
显身卡
richardlee
richardlee
当前离线
积分
2
IP卡
狗仔卡
发表于 2007-11-21 22:28:29
|
显示全部楼层
现在还是有个问题没解决:
以前autofs,nis好好用的,前两天重起了一次服务器后,发现autofs不能用了,mount -l显示正常,就是不能进入mount好的目录.
/var/log/messages中服务都启动了,包括automount, yp,nfs等等.
因为服务器不能上网,故log信息不好贴在这里.
有人能帮忙吗?先谢谢了.
回复
支持
反对
使用道具
举报
显身卡
Loinux
Loinux
当前离线
积分
6
IP卡
狗仔卡
发表于 2008-9-25 12:39:50
|
显示全部楼层
if the nisuserx's home directory is /rhome/deskx/nisuserx, where x is your desk number.
How to do is?
回复
支持
反对
使用道具
举报
显身卡
返回列表
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
注册
本版积分规则
发表回复
回帖后跳转到最后一页
Copyright © 2002-2023
LinuxSir.cn
(http://www.linuxsir.cn/) 版权所有 All Rights Reserved.
Powered by
RedflagLinux!
技术支持:
中科红旗
|
京ICP备19024520号
快速回复
返回顶部
返回列表