NIS-SLAVE

xiaoxiao2021-03-06  35

Like Many Others, I Had Been Fighting with The Error ...

"Can't Enumerate Maps from . Please check what it is running."

... generated when Running ...

/ usr / lib / yp / ypinit -s

... to configure a red Hat NIS SLAVE Server.

I resolved the problem by pulling together a couple of separate suggestions The essence of the problem is that the / usr / lib / yp / ypinit script does not have a good reputation Two consecutive lines were originally as follows.!:

# Maps = `Ypwhich -m | Egrep $ master $ | awk '{printf ("% s ", $ 1)}' -` Maps =` $ ypbindir / yphelper --maps $ master`

Changing The as Follows Allows You To Run THE / USR / LIB / YP / YPINIT -S Command SuccessFully, with the map files being copied INTO / VAR / YP / :

Maps = `YPWHICH -M | EGREP $ MASTER | awk '{printf ("% s ", $ 1)}' -` # Maps =` $ YPBISDIR / YPHELPER --MAPS $ MASTER`

The Specific Changes Are: - Use the 'Ypwhich' line instead of the 'yphelper' line. - Remove the extraneous '$' after 'master'.

Hope this is of help to someone! It Took me long enough to sort it out.

转载请注明原文地址:https://www.9cbs.com/read-75707.html

New Post(0)