首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >NIS+ Solaris 10,主服务器设置

NIS+ Solaris 10,主服务器设置
EN

Unix & Linux用户
提问于 2013-02-06 21:32:32
回答 1查看 991关注 0票数 1

这是我第一次使用NIS+命名服务。

我希望使用此脚本将我的主机配置为主根服务器。

/usr/lib/nis/nisserver -r -d doc.com。

我得到了一个错误:

代码语言:javascript
复制
> ********        ********    WARNING    ********        ******** NIS+ might not be supported in a future release. Tools to aid the migration
> from NIS+ to LDAP are available in the Solaris 9 operating
> environment. For more information, visit
> http://www.sun.com/directory/nisplus/transition.html
> ********        ********    *******    ********        ********
> 
> This script sets up this machine "master" as an NIS+ root master
> server for domain doc.com..
> 
> Domain name             : doc.com. NIS+ group              :
> admin.doc.com. NIS (YP) compatibility  : OFF Security level          :
> 2=DES
> 
> Is this information correct? (type 'y' to accept, 'n' to change) y
> 
> This script will set up your machine as a root master server for
> domain doc.com. without NIS compatibility at security level 2.
> 
> WARNING: this script removes directories and files related to NIS+
> under /var/nis directory with the exception of the client_info
> NIS_COLD_START file which will be renamed to <file>.no_nisplus.  If
> you want to save these files, you should abort from this script now to
> save these files first.
> 
> WARNING: once this script is executed, you will not be able to restore
> the existing NIS+ server environment.  However, you can restore your
> NIS+ client environment using "nisclient -r" with the proper domain
> name and server information.
> 
> Do you want to continue? (type 'y' to continue, 'n' to exit this
> script) y
> 
> setting up domain information "doc.com." ...
> 
> setting up switch information ... switch configuration file already
> set to use NIS+.
> 
> killing NIS and NIS+ processes ... stopping nscd ...
> 
> setup NIS_GROUP environment variable ...
> 
> rm /var/nis files ...
> 
> running nisinit ... This machine is in the "doc.com." NIS+ domain.
> Setting up root server ... All done.
> 
> starting root server at security level 0 to create credentials...
> 
> running nissetup to create standard directories and tables ...
> doc.com.: NIS+ servers unreachable. couldn't create org_dir.doc.com.
> **ERROR: it failed to create the tables.

我寻找这个错误,但没有找到任何解决方案。

EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2013-02-07 08:04:10

从甲骨文网站:常见的NIS+名称空间错误消息上查看这个

它包含已知的错误,您将给出查找错误的提示。

对于这一特定的问题:

描述: NIS+命令nissetup未能创建目录和表。检查系统控制台中的系统错误消息:如果存在系统错误消息,请修复错误消息中描述的问题并重新运行nisserver。如果没有任何系统错误消息,请检查rpc.nisd进程是否正在运行。如果没有运行,请重新启动它并重新运行nisserver。区块报价

因此,基本上,检查/var/adm/messages中是否有错误,并检查rpc守护进程是否正在运行:

代码语言:javascript
复制
ps -ef|grep rpc.nisd

如果我们的输入是空的,那么启动这个过程。

再次执行该命令,并在另一个会话或终端中执行以下操作:

代码语言:javascript
复制
tail -f /var/adm/messages

希望您能够看到所生成的错误,并采取适当的操作来修复该问题。

票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/63990

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档