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
来源: http://www.bubuko.com/infodetail-2135410.html