实验环境:centos 6.10

1.安装ntp工具

yum install -y ntp

2.便宜/etc/ntp.conf文件,添加远程时间服务器

server ntp1.aliyun.com
server ntp2.aliyun.com
server ntp3.aliyun.com
server ntp4.aliyun.com

3.启动ntpd后台进程,设置开机启动

service ntpd start
chkconfig ntpd on

 

相关文章: