- 论坛徽章:
- 0
|
不知道为什么一直报如下的错误。。。。有点晕 还是没有配置好吗? 求指教。。。。
- [root@localhost ~]# service ypbind restart
- Shutting down NIS service: [ OK ]
- Starting NIS service: [ OK ]
- Binding NIS service: .................. [FAILED]
复制代码 客户端的yp.conf是这样的- [root@localhost ~]# cat /etc/yp.conf
- # /etc/yp.conf - ypbind configuration file
- # Valid entries are
- #
- # domain NISDOMAIN server HOSTNAME
- # Use server HOSTNAME for the domain NISDOMAIN.
- #
- # domain NISDOMAIN broadcast
- # Use broadcast on the local net for domain NISDOMAIN
- #
- # domain NISDOMAIN slp
- # Query local SLP server for ypserver supporting NISDOMAIN
- #
- # ypserver HOSTNAME
- # Use server HOSTNAME for the local domain. The
- # IP-address of server must be listed in /etc/hosts.
- #
- # broadcast
- # If no server for the default domain is specified or
- # none of them is rechable, try a broadcast call to
- # find a server.
- #
- domain fxd server 192.168.98.74
复制代码 服务端的/etc/sysconfig/network文件
- [root@localhost ~]# cat /etc/sysconfig/network
- NETWORKING=yes
- HOSTNAME=localhost.localdomain
- NISDOMAIN=fxd
复制代码 服务端的/etc/ypserv.conf文件:- vim /etc/ypserv.conf
- [root@localhost ~]# vim /etc/ypserv.conf
- #
- # ypserv.conf In this file you can set certain options for the NIS server,
- # and you can deny or restrict access to certain maps based
- # on the originating host.
- #
- # See ypserv.conf(5) for a description of the syntax.
- #
- # Some options for ypserv. This things are all not needed, if
- # you have a Linux net.
- # Should we do DNS lookups for hosts not found in the hosts table ?
- # This option is ignored in the moment.
- dns: no
- # How many map file handles should be cached ?
- files: 30
- # Should we register ypserv with SLP ?
- # slp: no
- # After how many seconds we should re-register ypserv with SLP ?
- # slp_timeout: 3600
- # xfr requests are only allowed from ports < 1024
- xfr_check_port: yes
- # The following, when uncommented, will give you shadow like passwords.
- # Note that it will not work if you have slave NIS servers in your
- # network that do not run the same server as you.
- # Host : Domain : Map : Security
- #
- # * : * : passwd.byname : port
- # * : * : passwd.byuid : port
- # Not everybody should see the shadow passwords, not secure, since
- # under MSDOG everbody is root and can access ports < 1024 !!!
- * : * : shadow.byname : port
- * : * : passwd.adjunct.byname : port
- # If you comment out the next rule, ypserv and rpc.ypxfrd will
- # look for YP_SECURE and YP_AUTHDES in the maps. This will make
- # the security check a little bit slower, but you only have to
- # change the keys on the master server, not the configuration files
- # on each NIS server.
- # If you have maps with YP_SECURE or YP_AUTHDES, you should create
- # a rule for them above, that's much faster.
- # * : * : * : none
复制代码 |
|