在CentOS8.0中默认不再支持ntp软件包,时间同步由chrony来实现。但是已经习惯了用ntpdate来同步系统时间,包括CentOS7和Ubuntu都是ntpdate来同步系统时间。
通过wlnmp提供的源,来安装ntp服务。
添加wlnmp源
rpm -ivh http://mirrors.wlnmp.com/centos/wlnmp-release-centos.noarch.rpm
安装ntp服务
yum install wntp
时间同步
ntpdate ntp1.aliyun.com
参考:
https://blog.whsir.com/post-4925.html