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 reasons. Methods are as follows
Use crontab to
] ~]#/etc/init.d/ntpdstartstarting NTPD: [ OK ][Email protected] ~]# ntpq-p remote refID St T when poll reach
>delay
offset
jitter
==============================================================================*ntp1.aliyun.com 10.137.38.86 2 u 1 525.885 -42.367 0.000[Email protected] ~]# NtpstatSynchronised to NTP server (110.75.186.247) at Stratum 3 time correct to within 4257 Ms Pollin
Reprint Address: HTTP://HI.BAIDU.COM/MESSUP/ITEM/4FCB2533A1553020B2C0C5F2
Because just contact Linux, so many places do not understand. At first, there was a problem-time synchronization.
So the internet search for a relevant article, and finally sorted out the idea of synchronization success, take out to share.
= = This row is the following text:
First of all, need to have a win system machine to do NTP
11grac Configuring the NTP server TIP01 IP:162.20.1.228NBSP;NBSP;NTP service-side TIP02 ip:162.20.1.229 Before the NTP client configures the NTP server, verify that the server is installed with the NTP package [[emailprotected]~]#
Linux Build local time serverPre-Experiment Description:Lab Machine: VMware 10Experimental system: CentOS6.6Experimental purpose: To make all CentOS systems on VMware the same time, convenient to do cluster experiment;#1, compile and install NTP (on the machine you want to do time server) I this machine IP: 172.16.249.135# Install the GCC compilerYum Install Gcc-y# Download Packageswget http://www.eecis.ude
1. Extract the source code to /USR/LOCAL/SRCCd/usr/local/srcTar-zxvf/root/ntp-4.2.4p7.tar.gz2. View readme/instll filecdntp-4.2.4p7/Moreinstall3.generate The makefile file, specifying that it will be installed in the/USR/LOCAL/NTP directory in the future. If not specified, it is installed to the/usr/local directory by default . ./configure--help|more Viewing the parameters available at compile time./configu
cve-2013-5211 Vulnerability Description:
Cve-2013-5211 was first announced January 10, 2014, because NTP itself does not verify the sender's source IP address. This is similar to the DrDoS (distributed reflection denial of service attack) used by the DNS parser. The attacker hack sent a forged message to the NTP server server A, changing the source IP address in the packet to the IP address of victim
There are tow pen source software related to the NTP in Linux, the first is ntpdate, the second is ntpd. you can install them as following:
Apt-Get installl NTP; Apt-Get install openntpd;
Or emerge NTP; emerge openntpd.
NtpdateCan be run manually as necessary to set the host clock, or it can be run from the host START
Linux Synchronizes time from NTP in Windows-Linux Enterprise Application-Linux server application information. The following is a detailed description. I have just started linux, so I don't know much about it in many places. At the beginning, I encountered a problem-time syn
quickly build NTP time synchronization server under LinuxBackground:server more, time consistency and readiness is particularly important, although this problem is always ignored, but the unification of time is very necessary, because the time problem caused by service problems is also commonplace, this article briefly introduce the rapid construction and use of NTP. 1. Installing NTPYum-y Install
turn from: http://hi.baidu.com/uc100200/blog/item/cccef6b517b512de37d3ca02.html
a
, BackgroundThe machine is loaded with BusyBox, using the smallest set of Linux. The hardware clock is local time, the kernel clock is UTC time, no time zone is set, and there is no option for any time zone setting.
Second, demandThis machine needs to be timed for NTP time synchronization. local time is displayed to th
1. Download NTP time software2, configure the beach time zone3, start this time software, and boot from the start4. Set the time manually to turn off the sync time provided by Red Hat5, open the configuration file configuration, restart the time service and then the server has been configured6, the client also installed NTP time software, and then open the config
Machine Networking:If the server can be networked: Perform ntpdate 1.cn.pool.ntp.org the server will automatically synchronize time write a scheduled task to perform a time synchronization every two minutes;Crontab-e/2 */usr/sbin/ntpdate 1.cn.pool.ntp.org//So that time synchronization can be achievedThe following is a domestic NTP Server1.cn.pool.ntp.org2.cn.pool.ntp.org3.cn.pool.ntp.org0.cn.pool.ntp.orgcn.pool.ntp.orgtw.pool.ntp.org0.tw.pool.ntp.org
Today, the boss asked me to install linux NTP service on our management machine, the platform is ARM9. the operating system is linux-2.4. I found the NTP source code on the Internet. After compilation, I copied ntpd, ntpq, ntpdate, and some files to the management machine. The NTP
Background:When the server is more, the time is accurate or not, the consistency is a problem. So it is necessary to unify the time.Here's how to configure a Linux time server within a LAN.Configuration environment and requirements:1. Assume that the Linux machine with IP 192.168.1.201 is the time server in the 192.168.1.0 network segment.2.192.168.1.201 server can Sisu network, can be synchronized with the
Current network of the host, the business side sent to have an unsynchronized. Before also encountered similar problems, generally are NTP dead, resulting in the time is not synchronized. This view NTP service is operating properly.
Www.111cn.net: ~ #:~ # RCNTP StatusChecking for Network Time Protocol Daemon (NTPD): Running
NTPQ command to view discovery and NTP
There is a very serious bug in the previous version of 1.ntp4.2.4, when there are-g-x in the startup parameters of NTP, and when the server address is unreachable in the server in Ntp.config, it will appear either start,stop, Restart service will be error.Error content: Starting ntpd:ERROR:only one panicgate option allowedThe description of this bug can be found in: https://bugzilla.redhat.com/show_bug.cgi?id=228424WORKAROUND: 1. Upgrade the version.
Time synchronization is important when the Linux service needs time-stamping. Here is a synchronization command that I used recently.ntpdateMy virtual machine is CentOS, install Ntpdateinstall ntpdateAnd thenSelect the NTP server in Shanghai Jiaotong University to synchronizentpdate ntp.sjtu.edu.cnCommonly used NTP addresses in ChinaAddress transferred from water
The NTP service is divided into two servers: server and client. Select one server and the other three servers as client. For example, if 18.2.4.4 is ntpserver, the other servers are ntpclient.
Ntpserver1. log on to the server through SSH and go to the/etc directory. We recommend that you back up the NTP. conf file fir
Tags: hit ted 2.4 Microsoft ya Black new ADO div val FacilityTime synchronization is important when the Linux service needs time-stamping. Here is a synchronization command that I used recently.
# ntpdate s1a.time.edu.cn
Commonly used NTP addresses in China
210.72.145.44 (National Timing Center Server IP address)133.100.11.8 Japan Fukuoka UniversityTime-a.nist.gov 129.6.15.28 NIST, Gait
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.