免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3716 | 回复: 1
打印 上一主题 下一主题

[服务应用] NIS客户端不能开启ypbind服务 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-07-09 13:23 |只看该作者 |倒序浏览
不知道为什么一直报如下的错误。。。。有点晕 还是没有配置好吗? 求指教。。。。

  1. [root@localhost ~]# service ypbind restart
  2. Shutting down NIS service:                                 [  OK  ]
  3. Starting NIS service:                                      [  OK  ]
  4. Binding NIS service: ..................                    [FAILED]
复制代码
客户端的yp.conf是这样的
  1. [root@localhost ~]# cat /etc/yp.conf
  2. # /etc/yp.conf - ypbind configuration file
  3. # Valid entries are
  4. #
  5. # domain NISDOMAIN server HOSTNAME
  6. #       Use server HOSTNAME for the domain NISDOMAIN.
  7. #
  8. # domain NISDOMAIN broadcast
  9. #       Use  broadcast  on  the local net for domain NISDOMAIN
  10. #
  11. # domain NISDOMAIN slp
  12. #       Query local SLP server for ypserver supporting NISDOMAIN
  13. #
  14. # ypserver HOSTNAME
  15. #       Use server HOSTNAME for the  local  domain.  The
  16. #       IP-address of server must be listed in /etc/hosts.
  17. #
  18. # broadcast
  19. #       If no server for the default domain is specified or
  20. #       none of them is rechable, try a broadcast call to
  21. #       find a server.
  22. #
  23. domain fxd server 192.168.98.74
复制代码
服务端的/etc/sysconfig/network文件

  1. [root@localhost ~]# cat /etc/sysconfig/network
  2. NETWORKING=yes
  3. HOSTNAME=localhost.localdomain
  4. NISDOMAIN=fxd
复制代码
服务端的/etc/ypserv.conf文件:
  1. vim /etc/ypserv.conf
  2. [root@localhost ~]# vim /etc/ypserv.conf
  3. #
  4. # ypserv.conf   In this file you can set certain options for the NIS server,
  5. #               and you can deny or restrict access to certain maps based
  6. #               on the originating host.
  7. #
  8. #               See ypserv.conf(5) for a description of the syntax.
  9. #

  10. # Some options for ypserv. This things are all not needed, if
  11. # you have a Linux net.

  12. # Should we do DNS lookups for hosts not found in the hosts table ?
  13. # This option is ignored in the moment.
  14. dns: no

  15. # How many map file handles should be cached ?
  16. files: 30

  17. # Should we register ypserv with SLP ?
  18. # slp: no
  19. # After how many seconds we should re-register ypserv with SLP ?
  20. # slp_timeout: 3600

  21. # xfr requests are only allowed from ports < 1024
  22. xfr_check_port: yes

  23. # The following, when uncommented,  will give you shadow like passwords.
  24. # Note that it will not work if you have slave NIS servers in your
  25. # network that do not run the same server as you.

  26. # Host                     : Domain  : Map              : Security
  27. #
  28. # *                        : *       : passwd.byname    : port
  29. # *                        : *       : passwd.byuid     : port

  30. # Not everybody should see the shadow passwords, not secure, since
  31. # under MSDOG everbody is root and can access ports < 1024 !!!
  32. *                          : *       : shadow.byname    : port
  33. *                          : *       : passwd.adjunct.byname : port

  34. # If you comment out the next rule, ypserv and rpc.ypxfrd will
  35. # look for YP_SECURE and YP_AUTHDES in the maps. This will make
  36. # the security check a little bit slower, but you only have to
  37. # change the keys on the master server, not the configuration files
  38. # on each NIS server.
  39. # If you have maps with YP_SECURE or YP_AUTHDES, you should create
  40. # a rule for them above, that's much faster.
  41. # *                        : *       : *                : none
复制代码

论坛徽章:
0
2 [报告]
发表于 2012-07-09 14:55 |只看该作者
日志文件里看看有什么提示
http://linux.vbird.org/linux_server/0430nis.php#nis_client
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP