Linux operating system and time synchronization settings
Source: Internet
Author: User
For linux operating systems and time synchronization settings, note the following command prerequisites: run the root permission to set the time: www.2cto. comdate-s11: 25: 36 set date: date-s07/26/2005 force write system time to CMOS (otherwise the system will set the time after 11 minutes by default...
For linux operating systems and time synchronization settings, note the following command prerequisites: run the root permission to set the time: www.2cto.com date-s 11:25:36: date-s 07/26/2005 forcibly write the system time to CMOS (otherwise, the system will write the set time to the motherboard CMOS in 11 minutes by default): clock-w www.2cto.com synchronize from the time server: ntpdate xxx -- "xxx" is a synchronization server domain name or IP address modification scheduler task. type the command crontab-e to modify the scheduler task configuration file and add the following command: 0 3 ***/usr/sbin/ntpdate 172.1.1.1>/var/log/ntpdate. log 2> & 1 the preceding command allows the time synchronization command to be executed at every day. at the same time, the execution result of the synchronization command is written and saved to "/var/log/ntpdate. note in the log file: the ntpdate command must be in the full path, Otherwise, the command cannot be found. You do not need to enter the full path during command line execution.
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