Update ntp.md

pull/11/head
lovvvve 2020-07-27 17:32:35 +08:00 committed by GitHub
parent b6d9c81ffb
commit 40b0db918d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ $ ntpdate cn.pool.ntp.org
示例:执行如下命令,就可以在每天凌晨 3 点同步系统时间: 示例:执行如下命令,就可以在每天凌晨 3 点同步系统时间:
```shell ```shell
echo "* 3 * * * /usr/sbin/ntpdate cn.pool.ntp.org" >> /etc/crontab # 修改 crond 服务配置 echo "0 3 * * * /usr/sbin/ntpdate cn.pool.ntp.org" >> /etc/crontab # 修改 crond 服务配置
systemctl restart crond # 重启 crond 服务以生效 systemctl restart crond # 重启 crond 服务以生效
``` ```