This article will give you a detailed introduction to the Linux automatic time correction command. Students who need to know more about it are welcome to refer to it.
Example
The code is as follows
代码如下 |
复制代码 |
yum install ntpdate
ntpdate cn.pool.ntp.org
crontab -e
00 12 * * * /sbin/ntpdate cn.pool.ntp.org
|
|
Copy code
|
yum install ntpdate
ntpdate cn.pool.ntp.org
crontab -e
00 12 * * * /sbin/ntpdate cn.pool.ntp.org
代码如下 |
复制代码 |
00 0 1 * * root rdate -s 10.35.60.64
|
|
Synchronization of multiple servers
First check whether the time service is turned on on both hosts chkconfig –list time. If it is shown as off, chkconfig time on turns on the time service
The code is as follows
|
Copy code
00 0 1 * * root rdate -s 10.35.60.64
http://www.bkjia.com/PHPjc/286889.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/286889.htmlTechArticleThis article will give you a detailed introduction to the Linux automatic time correction command, for those who need to know more about it. Enter reference. The example code is as follows. Copy the code yum install n...
|
|