Centos 7
#安装软件
[[email protected] ~]# yum -y install chrony
#修改配置文件
[[email protected] ~]# vi /etc/chrony.conf 22:allow 192.168/16
#设置时区
[[email protected] ~]#timedatectl set-timezone Asia/Shanghai
#开启服务
[email protected] ~]#systemctl start chronyd.service [email protected] ~]#systemctl enable chronyd.service
时间: 2024-12-13 14:37:37