Linux system time synchronization, hardware and system time synchronization, Time Zone settings, linux time zone
1. Time Synchronization (manual): date-s "22:13:30" hwclock -- systohc (indicating that the system Synchronizes time to the hardware clock) hwclock -- hctosys (indicating that the hardware clock is synchronized to the system time)
2. synchronize data over the Internet: Check whether ntp is available in linux: rpm-qa | grep ntp.
If not installed, continue searching: yum search ntp
Then install the ntp: yum install ntp. i386 with the Information prompt shown above.
After installation: Enter ntp and press the tab key to enter the prompt. ntpdate will be available and we need it.
Start synchronization: ntpdate time.windows.com. That's all. It's easy. It means that time.windows.com is a windows Time Server.
Finally, synchronize the system time to the hardware clock: hwclock -- systohc
Internet synchronization is complete!
3. The above two methods are too troublesome, because ntp can synchronize service ntpd start after a daemon is started, and then press enter to view them: ps-ef | grep nepd
The following are still incorrect after synchronization: 1. Enter date-R to see if 8 (+ 0800) is added. 2. How can I set the linux time zone without + 8? input: tzselect select serial number: 5 indicates Asia, then select country: 9 indicates China, and then select 1 to adjust the time zone.
The above is the synchronization time method.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.