问题1:已配置好yum源,执行yum -y install ntp报错

Redhat 7.5 安装ntp服务各种问题解决

问题分析:根据报错信息,yum在安装ntp时,要求一个较低版本的ntpdate;但此时我们的服务器上已经安装了一个较高版本的ntpdate,所以报错。

问题解决:使用yum remove ntpdate-4.3.6p5-28.el7.x86_64,将较高版本的ntpdate移除,再重新使用yum -y install ntp安装ntp。

 

 

问题2:已安装ntp,配置好/etc/ntp.conf,使用systemctl start ntpd启动ntp时,失败并报错fail to start

Redhat 7.5 安装ntp服务各种问题解决

 

问题解决:systemctl  enable ntpd  , systemctl start ntpd

 

实践:配置ntp.conf

将server ip列表都注释掉,并新增  server  你的主ntp服务器的IP

Redhat 7.5 安装ntp服务各种问题解决

 

 

 

相关文章: