In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
In this article, we will take a look at CentOS7.3 time synchronization methods. There is a certain reference value, friends in need can refer to, hope to help you.
1.1. Modify time zone and time
If you choose to install in Chinese at the time of installation, the default is the time zone of Shanghai, China. Of course, you can also adjust it during installation. If there is no adjustment, we will now talk about the following adjustment methods:
The command to view the current time zone:
Timedatectl | grep "Time zone"
Display content: Time zone: Asia/Shanghai (CST, + 0800)
Modify by command:
Timedatectl set-timezone Asia/Shanghai
View the current system command:
Date
Date-s 03max 18max 2020 modification date
Date-s 10:10:10 modification time
Note: after the system restarts, it will return to cmos time. We can use date-w to write the modified time into cmos, so that the time will be completely modified, but we generally will not modify it in this way, because the cmos time is not necessarily the same as the actual time, so we use time synchronization to synchronize the time of the network time server in real time to ensure the correctness of the time.
Time synchronization method:
First, install ntp
Yum install ntp-y
Synchronization command:
Ntpdate time.windows.com
Timed start:
We can add commands to the timing startup item, so that the system will update the system time regularly to ensure that the time is the same as the Internet time.
Crontab-e
Join:
* / 5 * / usr/sbin/ntpdate time.windows.com > / dev/null 2 > & 1 # the system initiates time synchronization with the time.windows.com time server in 5 minutes. In this way, you can keep the same time with the Internet.
Attached:
Show all available time zone commands: timedatectl list-timezones
The above is a brief introduction to the CentOS7.3 time synchronization method, of course, the detailed use of the above differences have to be used by everyone to understand. If you want to know more, welcome to follow the industry information channel!
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.