标签搜索
chrony同步阿里云时间
记录笔记的地方

chrony同步阿里云时间

skwax
2021-12-29 / 3 评论 / 171 阅读 / 正在检测是否收录...
  1. 安装chrony
    yum install chrony -y
    vim /etc/chrony.conf
    修改chrony配置文件(替换默认的centos)
    server ntp1.aliyun.com iburst
    server ntp2.aliyun.com iburst
    server ntp3.aliyun.com iburst
    server ntp4.aliyun.com iburst

    allow 192.168.0.0/16 #允许NTP客户同步ip段 NTP同步时需要配置

  2. 启动chronyd服务,并加入开机自启
    systemctl enable chronyd
    systemctl enable chronyd
  3. 验证效果
    timedatectl
0

Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/biji.moyuke.net/var/Widget/Archive.php on line 1032

评论

博主关闭了所有页面的评论