Set up ntp time server and ntp Time Server
Chapter 1 Introduction to ntp1.1 ntp
NTP(Network Time Protocol) is a Protocol used to synchronize Time between computers in the Network. Its purpose is to synchronize the computer clock to the Coordinated Universal Time UTC, and its accuracy can reach 0.1 ms in the LAN. In
client Manually perform ntpdate Or use crontab to performCrontab-e0 * * * ntpdate 192.168.211.22 >>/root/ntpdate.log 2>1Sync every night 9 o'clockReport:When querying with ntpdate-d, you will find the following 2 messages that cause no server suitable for synchronization found error:Error 1. Server Dropped:strata too highThe NTP client runs Ntpdate ServerIP, and no server suitable for synchronization found error occurs.The
article is a very good time client software that can work in windows98, 2000, and XP systems, when "Allow other computers to sync to this computer" is selected, this computer can be used as a time server.
◆ V. set the time server client
The main task of the client is to connect to the time server in the Lan to keep the computer clock synchronized with the server. Introduction to Linux, Windows 98, 2000, and XP
1. LINUX host
In fact, when we introduce
check, and then configure the Yum Warehouse, yum mode installation is OK, as follows:[[email protected] ~]# Rpm-qa NTPntp-4.2.6p5-1.el6.centos.x86_64 //This means that it is installed and if it is not installed, this is blank. If it is not installed, we will install it:# yum Install NTPInstall the NTP package on each server in the intranet as per the above installation method.When you are finished, you need to configure the
1. "The NTP socket is on use, exiting" error appears. The reason for this is that the system NTPD server is running and can be via PS aux | grep ntpd View, if you still want to manually synchronize time, you must first stop the service, the command is:service ntpd stop or/etc/init.d/ntpd stop2. Npdate time.windows.com or ntpdate us.pool.ntp.org will be able to synchronize time successfully. This article is from the Linux Technical Exchange blog, so b
Tags: access command service-side time zone not inux picture Telnet network timeIn order to achieve time synchronization, we need to use the NTP (Network Protocol) protocol.Simply put, NTP is the protocol used to keep the system in sync with a precise time source.We need to establish a server that can provide accurate time, all the computers in the LAN unified Ti
read out by the BIOS and the BIOS is the important time basisNTP server time synchronization with the upper-level time server, so the default NTP server can not use Ntpdate, that is, ntpdate and NTPD cannot be enabled simultaneouslydirective: ntpdate [-DV] [NTP Ip/hostname]Options and Parameters:-D: Enter debug mode to display more useful information-V: Display with more informationScheduled tasks for time
Deploy NTP in RHEL6.5 Cluster
NTP is called Network Time Protocol, which is the Network Time Protocol. It is generally used in Linux to synchronize the time of different machines in the cluster.
Shows the ntp service deployment framework described in this document.
For example, the framework includes an Internet ntp s
This is a creation in
Article, where the information may have evolved or changed.
File Project Main.goPackage Main
Import ("Encoding/binary""FMT""NET""OS""Os/signal""Sync""Time")
Const (NTP_SERVER_IP = "time.windows.com"/*NTP ip*/NTP_PORT_STR = "123"/*NTP dedicated port number String */Ntp_pck_len = 48LI = 0VN = 3MODE = 3Stratum = 0POLL = 4PREC =-6jan_1970 =
TimeSync for VMware Tools, the virtual machine will, in some cases, and its host go to sync time, as described configure times synchronization Between Guest and Host Operating Systems. The time of this esxi virtual machine is wrong, because ESXi time is wrong. –_-| | The author runs the following command to make this virtual machine time correct.
net start w32tm
W32tm/config/manualpeerlist:10.110.69.124/syncfromflags:manual/reliable:yes
When querying with ntpdate-d, you will find the following 2 messages that cause no server suitable for synchronization found error:Error 1. Server Dropped:strata too highThe NTP client runs Ntpdate ServerIP, and no server suitable for synchronization found error occurs. The NTP client was viewed with ntpdate–d ServerIP and found "Server dropped:strata too high" error, and "stratum" is displayed. And under n
Linux uses NTP service to manage/Synchronize server time
When there are multiple Web servers, and each server's time needs to be consistent, consider using NTP services.
1. Use Ntpstat to see the current status of the NTP service.
#ntpstat
If the output below, the description has not started, you need to set the server restart when the
Automatic synchronization via network NTP
If you only need to sync once, execute the following command
Rdate-s time.nist.gov
Where time.nist.gov is a time server, of course you can also use another time server.
If multiple servers require a full synchronization of time, it is best to configure these servers with a unified, automatic synchronization task, so that their time is biased for a variety of rea
selected two
Clock.nc.fukuoka-u.ac.jp 133.100.9.2.
Clock.tl.fukuoka-u.ac.jp 133.100.11.8.
Steps:
FreeBSD has two standard ntp programs, one of which is ntpdate.
Ntpdate obtains the time point from the ntp server and adjusts the local time point.
# Ntpdate clock.nc.fukuoka-u.ac.jp
9 Oct 18:12:23 ntpdate: step time server 133.100.9.2 offset-19.112674 error of about 19 seconds
Automatic Setting
# Grep ntpda
machine in LAN)Clock synchronization with NTP server hourly and write to native BIOS[Plain]View PlainCopy
echo "*/1 * * * * root/usr/sbin/ntpdate 192.168.0.240;/sbin/hwclock-w" >>/etc/crontab
-------------------------------------------------------------------------------------1.4 Configuring time synchronization between clusters 1.4.1 Configure the primary Time service node in the cluster1) Check if
Windows clock Sync problem
During the system deployment process, the clock synchronization problem is required, which only illustrates the problem of Windows clock synchronization1, the clock server settingsWindows Server 2000 has the Time service program running-〉 Computer Configuration-〉 Management Templates-〉 system-〉windows Time service, start time service.2, client settingsNET Time/setsntp:[server NAME]Network Time Protocol (N T P) is a T C p/i P
service[Email protected] ~]#/etc/init.d/ntpd restartSecond, the verification on the Node2[Email protected]node2 oracle]# ntpdate-d 192.168.1.130--note that it usually takes 5 minutes to connect to the NTP server successfullyApril 21:18:02 ntpdate[1382]: No server suitable for synchronization foundViewed with ntpdate-d 192.168.1.130, the server dropped:strata too high and stratum 16 are found, while under normal circumstances stratum up to 15 classes.
selected two
Clock.nc.fukuoka-u.ac.jp 133.100.9.2.Clock.tl.fukuoka-u.ac.jp 133.100.11.8.
Steps:
FreeBSD has two standard NTPProgramThe first is ntpdate.Ntpdate obtains the time point from the NTP server and adjusts the local time point.
# Ntpdate clock.nc.fukuoka-u.ac.jp9 Oct 18:12:23 ntpdate: Step time server 133.100.9.2 offset-19.112674The error is about 19 seconds.
Automatic Setting
# Grep ntpdate/etc/defaults/rc. conf>/etc/rc. conf# Vi
Ubuntu as an NTP server1. Installing NTPsudo apt-get install NTP2. NTP serverVim/etc/ntp.confThe following parameters are mainly included in the configuration file/etc/ntp.conf The following parameter 1 is mainly included in the configuration file/etc/ntp.conf. Restrict Driftfile//used to set the file to save the drift time. #解决NTP服务器校准时间时的传送延迟server [IP] [p
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.