In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Synchronization time We use the method of automatic execution of scheduled tasks and use the crontab command to synchronize editing time
Basic format:
Command
Time-sharing, day, month and week order
The first column represents minutes 1: 59 per minute or * / 1
The second column represents the hour 1: 23 (0 means 0 o'clock)
The third column represents the date 1: 31
The fourth column represents the month from January to December.
The fifth column identification number is 0006 (0 means Sunday)
Column 6 commands to run
Crontab-e / / Edit scheduled tasks
Crontab-l / / list View scheduled tasks
Crontab-r / / Delete the current scheduled task
Use the ntpdate command to synchronize time
Ntpdate-s time.windows.com
-s specifies the use of the log operation syslog facility instead of using standard output. It is useful when running the ntpdate command and the cron command.
Do the following:
Crontab-e
1 root ntpdate-s time.windows.com
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.