linux在做NIS服务器时启动 chkconfig time on时显示在 time 服务中读取信息时出错:没有那个文件或目录

linux在做NIS服务器时启动 chkconfig time on时显示在 time 服务中读取信息时出错:没有那个文件或目录,第1张

必须条件:

a) 服务器端和客户端要安装运行支持服务pormap

b) c/s两端要分别安装nis软件包,并配置正确

c) 服务端要输出NFS共享目录,客户端要挂载SERVER端的共享目录

d) 客户端须修改用户帐号信息查询方式为NIS

e) 服务端本地信息更改,须重建NIS数据库

服务

协议

软件包

进程

NIS

(Network Information Service)

由portmap服务支持

Tcp & Udp 111

服务端:ypserv-rpm

客户端:ypbind-rpm

yp-tools-rpm

服务端:ypserv 和

Yppasswdd

客户端:ypbind 和 ypxfrd

服务器配置:

一 支持服务安装

a) 确认服务portmap安装并运行。

rpm –qa | grep portmap 确定服务是否已安装;

service portmap status 确定服务是否正常运行;

b) 启动time和time-udp服务

chkconfig time on

chkconfig time-udp on

service xinetd restart

二 安装NIS服务端软件包

a) 挂载光驱,找到安装包ypserv-rpm并安装

rpm –ivh ypserv-rpm

b) 设置开机启动NIS服务

chkconfig - - level 35 ypserv on

chkconfig - - level 35 yppasswdd on

c) 建立NIS域名:nisdomainname nistest

将命令写入开机自动执行档,开机时自动建立NIS域名:echo ‘nisdomainname nistest’ >> /etc/rcd/rclocal

三 (可选)配置NIS服务的配置文件:vi /etc/ypservconf

设置允许或拒绝指定的主机(网段)使用NIS服务。格式如下:

主机(网段)地址 : 网络域名 : 映射数据库类型 : 安全等级

ip/主机名/网段 none/port/deny

例: 127000/2552552550 : : : none

19216810/2552552550 : : : none

四 (可选)配置安全配置文件 vi /var/yp/securenets

比ypservconf具有更高的访问控制的级别与效率

例: host 127001

2552552550 19216810

五 启动NIS服务,在启动NIS服务前,须确定支持服务已启动。

service ypserv start

service yppasswdd start

六 构建NIS数据库,在NIS服务务主机中对本地系统用户帐号、组帐号等信息(文件)更改后都需要使用ypinit命令重新构建数据库文件的内容,否则NIS客户端主机获得的信息不会自动更新。

/usr/lib/yp/ypinit –m 建立主数据库

/usr/lib/yp/ypinit –s master 建立从数据库,master必存在。

建立成功后数据库文件何存在 /var/yp/ 下的与NIS域名同名的子目录中。

客户端配置:

一 安装客户端软件包 rpm –ivh ypbind-rpm

二 安装客户端测试工具 rpm –ivh yp-tools-rpm

三 设置hosts文件 vi /etc/hosts 以便客户机可以通过主机名访问NIS服务器

四 建立NIS域名: nisdomainname nisserver

设定开机自动设置NIS域名

方法一:vi /etc/rcd/rclocal

增加一行:/bin/nisdomainname nisserver

方法二:echo ‘/bin/nisdomainname nisserver’ >> /etc/rcd/rclocal

五 设置ypbind服务程序的配置文件ypconf

a) echo ‘domain nistest server nisserver’ >> /etc/ypconf

b) vi /etc/ypconf

添加:domain nistest server nisserver

六 设置 /etc/nsswitchconf ,用于设置系统中信息的查询方式

files表示本地 nis表示从NIS服务器

l passwd表示用户帐户信息查询

l shadow表示用户口令信息查询

l group表示用户组帐户信息查询

l hosts表示主机名信息查询

七 启动ypbind服务

a) 查看支持服务portmap是否安装并运行正确

rpm –qa | grep pormap

service portmap status

b) 启动ypbind

service ypbind start

c) 设定ypbind运行级别

chkconfig –level 35 ypbind on

共享目录的应用

server端输出NFS共享目录:

1 编辑 vi /etc/exports ,添加共享目录(例:/home)

/home (rw,sync)

2 启动NSF服务器程序

service nfs start

Client端挂载共享目录:

1 添加自动挂载设置

vi /etc/fstab

192168110:/home /home nfs defaults 0 0

2 使用mount命令挂载目录

例:mount /home

以下进行客户端上的配置:

1.确认安装以下包: ypbind、yp-tools默认安装了的

2.设置hosts文件

[root@localhost ~]# cat /etc/hosts

# Do not remove the following line, or various programs

# that require network functionality will fail

127001 localhostlocaldomain localhost

192168110 crazylinux NIS服务器的主机名

3.建立NIS域名

[root@crazylinux /]# nisdomainname nistest

[root@crazylinux /]# cat /etc/rcd/rclocal

#!/bin/sh

#

# This script will be executed after all the other init scripts

# You can put your own initialization stuff in here if you don't

# want to do the full Sys V style init stuff

touch /var/lock/subsys/local

/bin/nisdomainname nistest 添加这行使之开机运行

修改/etc/sysconfig/network文件,增加此行:NISDOMAIN=nistest

4.设置ypconf

[root@localhost ~]# cat /etc/ypconf

# generated by /sbin/dhclient-script

domain domainorg broadcast

domain nistest 添加这句

ypserver crazylinuxnistest

在/etc/passwd最下面添加

+::::::

5.设置nsswitchconf

vi /etc/nsswitchconf 修改为这样

passwd: files nis nisplus

shadow: files nis nisplus

group: files nis nisplus

#hosts: db files nisplus nis dns

hosts: files nis dns

6.启动ypbind服务程序

[root@localhost ~]# service portmap status

portmap (pid 1683) is running

[root@localhost ~]# service ypbind start

Binding to the NIS domain: [ OK ]

Listening for an NIS domain server

在NIS服务器中输出NFS共享目录

在nis服务器上

[root@localhost ~]# vi /etc/exports 添加

/home 19216810/24(rw,async,np_root_squash)

[root@localhost ~]#service nfs start

在NIS客户机上

[root@localhost ~]#vi /etc/fstab

Crazylinuxnistest:/home/ /home nfs defaults 0 0

电子商务的数据库构建步骤主要有以下几点:

需求分析:调查和分析用户的业务活动和数据的使用情况,弄清所用数据的种类、范围、数量以及它们在业务活动中交流的情况,确定用户对数据库系统的使用要求和各种约束条件等,形成用户需求规约;

概念设计:对用户要求描述的现实世界,通过对其中住处的分类、聚集和概括,建立抽象的概念数据模型;

逻辑设计:主要工作是将现实世界的概念数据模型设计成数据库的一种逻辑模式,即适应于某种特定数据库管理系统所支持的逻辑数据模式;

物理设计:据特定数据库管理系统所提供的多种存储结构和存取方法等依赖于具体计算机结构的各项物理设计措施,对具体的应用任务选定最合适的物理存储结构;

验证设计:在上述设计的基础上,收集数据并具体建立一个数据库,运行一些典型的应用任务来验证数据库设计的正确性和合理性等。

以上就是关于linux在做NIS服务器时启动 chkconfig time on时显示在 time 服务中读取信息时出错:没有那个文件或目录全部的内容,包括:linux在做NIS服务器时启动 chkconfig time on时显示在 time 服务中读取信息时出错:没有那个文件或目录、电子商务数据库构建步骤是什么(关于电子商务数据化运营的工作流程)、等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/sjk/10138839.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-05-05
下一篇2023-05-05

发表评论

登录后才能评论

评论列表(0条)

    保存