rhel7.0中搭建nis服务器



服务器端
1.配置yum
2.安装ypserv
3.创建nis用户的专用目录mkdir /nishome
4.添加nis认证用户
useradd -d /nishome/hehe -u 1007 hehe
useradd -d /nishome/heihei -u 1008 heihei
5.指定nis域nisdomainname example.com
6.将nis域指定到开机启动脚本中ehco "/bin/nisdomainname example.com" >> /etc/rc.local
7.在网路选项中添加nis域vim /etc/sysconfig/network
NISDOMAIN=example.com
8.启动ypserv服务systemctl restart ypserv.service
9.生成nis数据库
/usr/lib64/yp/ypinit -m
ctrl+d
y
11.共享nis用户的家目录vim /etc/exports
/nishome  *(rw)
12.重启服务systemctl restart nfs.service  systemctl restart ypserv.service
13.开机启动nfs和ypserv      systemctl enable nfs-server.service                                                                           systemctl enable ypserv.service
14.关闭防火墙
systemctl stop  firewalled.service


客户端
1.关闭防火墙 将selinux改为警告
2.配置yum
3.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值