Using the NTP server perfectly solves the problem of failure to synchronize VMwareLinux time

Source: Internet
Author: User
The Copyleft of this document is owned by rosetta and published using GPL. the integrity of this document must be maintained during reprinting. Why can't I synchronize data in WMware for a long time...
The use of the NTP server perfectly solves the problem that the VMware Linux time cannot be synchronized. Copyleft of this document belongs to rosetta and can be freely copied and reproduced when published using GPL. ensure the integrity of the document during reprinting. I still had a headache when I used Linux in WMware for a long time. I also went online to find some methods, saying that I had to use VMware Tools for synchronization, and I had to install it for a long time, if you want to use the NTP server today, you can solve the time synchronization problem by the way. In addition, you can complete these steps, which is simple, convenient, and reliable. The general idea is to install an NTP server on a windows host, which is synchronized every few minutes in Linux.
1. install the NTP server in windows to download the ntp installation package. after the installation is complete by default, modify C: \ Program Files \ NTP \ etc \ ntp. conf only keeps the following two sentences: server 127.127.1.0 fudge 127.127.1.0 stratum 8: C: \ Program Files \ NTP \ bin execute restartntp. bat restarts the NTP service to execute ntpstatus. bat to view the current NTP service status www.2cto.com 2, and perform the operation in Linux [root @ localhost ~] # Ntpdate the NTP server IP address is successfully executed as follows: 27 Aug 20:44:52 ntpdate [3417]: adjust time server 172.12.12.12 offset-0.001939 sec if: no Server suitable for synchronization found check ntp. check whether the conf file is incorrect. make sure that you try again three minutes after the first step. You can run the following command to find the specific cause of the error. Generally, the error "Server dropped: strata too high" is displayed. [root @ localhost ~] # Ntpdate-d IP 3: it is still very knowledgeable to configure the crontab to be automatically synchronized once every minute. the timing function is controlled by it. make sure that the crond service is enabled, today, we only use it to execute the specific script function in the first minute. Enable crond service [root @ localhost ~] # Service crond restart stop crond: [OK] start crond: www.2cto.com [OK] create a crontab file and create a [root @ localhost ~] # Vim. date. cron added the following content: */1 *****/usr/sbin/ntpdate NTP server IP add this file to crontab and display the current task [root @ localhost ~] # Crontab. date. cron [root @ localhost ~] # Crontab-l */1 *****/usr/sbin/ntpdate NTP server IP address if you need Linux to perform the synchronization time operation again, then in/etc/rc. add the following command to local. /Usr/sbin/ntpdate NTP server IP address is good, so far Linux system time will no longer exception, after also do not need to knock date-s "YY-MM-DD" every day.
 
Related Article

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.