Linux can reset the system time. The reset method is: 1. Use the date command to check the time; 2. Use the "yum install ntp" command to install ntp; 3. Use "ntpdate -u ntp.api. bz" command to achieve network time synchronization.
#The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.
Can Linux reset the system time?
Can.
linux reset system time
1. View time date command
date -s 09:38:40: Set the current time
2. Install ntp
yum install ntp
3. ntp command
ntpdate -u ntp.api.bz :Network time synchronization command
Note: If the -u parameter is not added, the following prompt will appear: no server suitable for synchronization found
-u: It can be seen from man ntpdate that -u Parameters can be synchronized with the host across the firewall;
ntp commonly used server:
China National Timing Center: 210.72.145.44
NTP server (Shanghai): ntp.api.bz
Stable NTP time synchronization server cluster: ntp.api.bz
NTP (Network Time Protocol) was proposed by Professor David L. Mills of the University of Delaware in 1985. In addition to In addition to estimating the round-trip delay of packets on the network, it can also independently estimate the computer clock deviation, thereby achieving high-precision computer timing on the network. It is designed to enable different machines to maintain the same time on the Internet. communication protocol. A time server is a server that uses NTP, through which machines in the network can maintain time synchronization. In most places, NTP can provide 1-50ms reliable synchronization of time sources and network working paths.
The Network Time Protocol (NTP) is detailed in RFC-1305 [Mills 1992]. RFC-1305 provides clear descriptions of events, states, transition functions and behaviors of NTP protocol automata. It uses appropriate algorithms to enhance clock accuracy and mitigate errors caused by multiple synchronization sources, achieving time services with sub-millisecond accuracy to meet the current path measurement needs in the Internet.
ntp.api.bz is a group of NTP server clusters. There are currently 6 servers located in Shanghai Telecom. This service is api.bz’s second free API service after http://sms.api.bz Mobile Fetion’s free SMS sending interface.
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of Can linux reset system time?. For more information, please follow other related articles on the PHP Chinese website!