本文章来给大家详细介绍关于Linux自动校正时间命令详解,各位有需要了解学习的同学不防进入参考。
实例
代码如下 |
复制代码 |
yum install ntpdate
ntpdate cn.pool.ntp.org
crontab -e
00 12 * * * /sbin/ntpdate cn.pool.ntp.org
|
多台服务器同步
先在两台主机上查看time服务是否打开 chkconfig –list time 如果显示为off则 chkconfig time on 打开time服务
代码如下 |
复制代码 |
00 0 1 * * root rdate -s 10.35.60.64
|
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn