Merge pull request #11 from lovvvve/patch-1

Update ntp.md
pull/14/head
钝悟 2020-08-06 11:00:52 +08:00 committed by GitHub
commit 4b95c1ea8b
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 点同步系统时间:
```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 服务以生效
```