Centos7 时间同步

2019-11-05 16:08
12
0

centos7从外网同步时间和时区设置

# 安装
yum install chrony
# 启用
systemctl start chronyd
systemctl enable chronyd
# 设置亚洲时区
timedatectl set-timezone Asia/Shanghai
# 启用NTP同步
timedatectl set-ntp yes

参考资料:

https://www.cnblogs.com/lei0213/p/8723106.html

全部评论