NIS(Network Information Service)

NISNetwork Information Service

NIS是集中控制几个系统管理数据库的网络用品。NIS简化了UNIXLINUX桌面客户的管理工作,客户端利用它可以使用中心服务器的管理文件。桌面系统的用户无需建立他们自己的/etc/passwd,他们只简单的使用维护在NIS服务器的文件即可。

当客户端登录某个账户时,他在客户端没有自己的家目录,可以使用自动挂载器,登上服务器,切换到用户的家目录。

1.    对于客户端,首先得处于某个域中,使用下列命令可以查看。

2.    将客户端加入某个域中。

可以使用两种方法:

1.)使用setup命令进行配置:

选中使用NIS

填写服务器域名和地址:

2.)配置文件/etc/yp.conf

使用RPC(远程过程调用协议,处于会话层,是一种通过网络从远程计算机程序上请求服务,而不需要了解底层网络技术的协议,通过portmapper提供服务)确保其服务开启服务。

3.    使用自动挂载器将客户端挂载到服务器上。

Vim /etc/auto.master

Vim /etc/auto.home

使用命令ls /home/guests查看,开始没结果

分别切换至guest2001guest2002,使用命令:

Su - guest2001

Su – guest2002

切换至该用户时再使用exit退出,再执行ls /home/guests

4.查看nis服务是否加入配置文件中

5.NIS客户端重启以后ypbind服务停止没有自动启动。并且yp.conf文件恢复系统的默认设置,所以要使用命令chkconfig是它开机后能够启动,并且保存配置。(ypbind守护进程负责从NIS服务器请求信息)

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
This book is designed as an Ubuntu 15.04 server reference, covering the Ubuntu servers and their support applications. Server tools are covered as well as the underlying configuration files and system implementations. The emphasis is on what administrators will need to know to perform key server support and management tasks. Coverage of the systemd service management system is integrated into the book, replacing the deprecated Upstart system. Topics covered include software management, systemd service management, AppArmor security, and the Network Time Protocol. Key servers are examined, including Web (Apache), FTP (vsftpd), printing (CUPS), NFS, and Samba (Windows). Network support servers and applications covered include the Squid proxy server, the Domain Name System (BIND) server, DHCP, firewalls (IPtables and FirewallD), and cloud computing. Table of Contents Part 1: Getting Started Chapter 1. Introduction to Ubuntu Linux Chapter 2. Installing the Ubuntu Server Chapter 3. Usage Basics: Login, Interfaces, and Help Chapter 4. Managing Software Part 2: Services Chapter 5. Managing Services with systemd Chapter 6. Mail Servers Chapter 7. FTP Chapter 8. Web Servers Chapter 9. News and Database Services Part 3: Shared Resources Chapter 10. Print Services Chapter 11. Network File Systems, Network Information System, and Distributed Network File Systems: NFS, NIS, and GFS Chapter 12. Samba Chapter 13. Cloud Computing Part 4: Network Support Chapter 14. Proxy Servers: Squid Chapter 15. Domain Name System Chapter 16. Network Auto-configuration with IPv6, DHCPv6, and DHCP Chapter 17. Firewalls Chapter 18. Administering TCP/IP Networks Part 5: Shells Chapter 19. Shells Chapter 20. Working with files and directories Chapter 21. Shell Variables and Scripts Chapter 22. Shell Configuration

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值