Detailed explanation of Linux automatic time correction command_PHP tutorial

WBOY
Release: 2016-07-21 16:13:18
Original
1362 people have browsed it

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.html
www.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...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template