Linux CentOS 7.3 启动chrony服务失败

1.在Linux CentOS 7.3上安装chrony服务,安装完成,启动该服务时报错 。报错信息如下所示
在这里插入图片描述
2.检查该服务状态未启动,查看详细信息如下所示
在这里插入图片描述
在这里插入图片描述

[root@centos7 ~]#journalctl -xe
Apr 29 15:56:10 centos7.magedu.org systemd[1]: Unit chronyd.service entered failed state.
Apr 29 15:56:10 centos7.magedu.org systemd[1]: chronyd.service failed.
Apr 29 15:56:10 centos7.magedu.org polkitd[522]: Unregistered Authentication Agent for unix-process:5752:6605232 (system bus name :1.14
Apr 29 16:00:34 centos7.magedu.org polkitd[522]: Registered Authentication Agent for unix-process:5768:6631624 (system bus name :1.143 
Apr 29 16:00:34 centos7.magedu.org systemd[1]: Starting NTP client/server...
-- Subject: Unit chronyd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit chronyd.service has begun starting up.
Apr 29 16:00:34 centos7.magedu.org chronyd[5776]: chronyd version 3.4 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND 
Apr 29 16:00:34 centos7.magedu.org chronyd[5776]: Could not change ownership of /var/run/chrony : Operation not permitted
Apr 29 16:00:34 centos7.magedu.org chronyd[5774]: Could not open /var/run/chrony/chronyd.pid : No such file or directory
Apr 29 16:00:34 centos7.magedu.org chronyd[5776]: Could not access /var/run/chrony : No such file or directory
Apr 29 16:00:34 centos7.magedu.org chronyd[5776]: Disabled command socket /var/run/chrony/chronyd.sock
Apr 29 16:00:34 centos7.magedu.org chronyd[5776]: Fatal error : Could not open /var/run/chrony/chronyd.pid : No such file or directory
Apr 29 16:00:34 centos7.magedu.org systemd[1]: chronyd.service: control process exited, code=exited status=1
Apr 29 16:00:34 centos7.magedu.org systemd[1]: Failed to start NTP client/server.
-- Subject: Unit chronyd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit chronyd.service has failed.
-- 
-- The result is failed.
Apr 29 16:00:34 centos7.magedu.org systemd[1]: Unit chronyd.service entered failed state.
Apr 29 16:00:34 centos7.magedu.org systemd[1]: chronyd.service failed.
Apr 29 16:00:34 centos7.magedu.org polkitd[522]: Unregistered Authentication Agent for unix-process:5768:6631624 (system bus name :1.14

该问题原因为:使用 yum -y install chrony命令,自动安装了最新版的chrony服务(配套7.7内核)。由于我的系统是7.3,可能不兼容高版本的chrony服务,导致服务启动失败。
在这里插入图片描述

最终解决方法:了解问题原因,可采用2种方法解决:

1、使用yum -y update。将系统版本升级至最新即可解决。(我使用的此方法)

2、使用CentOS 7.3 yum源,安装兼容7.3的Chrony版本。

在这里插入图片描述

原文链接:https://blog.csdn.net/YaMemory/article/details/104566031

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值