Solve the Problem of Debian time synchronization installation on the VM.

Source: Internet
Author: User
Solve the problem of non-synchronization of Debian time installed on the VM-Debian information of the Linux release technology. The following is a detailed description. Because the VM time is often not synchronized with the physical machine, it is best to use ntp in the VM to synchronize the time.
The Virtual Machine is installed with the Debian system, so apt is used for download and installation.
To the root user:
# Apt-cache search ntpdate
Because we do not need to set up an ntp server, we only need a client to synchronize the time. You can see that the software is ntpdate.
# Apt-get install ntpdate
Download and install it automatically.
After installation, use crontab to automatically update the time:
# Crontab-e
Add the following lines:
*/30 */usr/sbin/ntpdate time.cuit.edu.cn
This line means to automatically synchronize with the time server time.cuit.edu.cn every 30 minutes.
Save and exit.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.