Target Environment,3DeskCentOS 6.6, a set asNTPDServices and external publicNTPService synchronization time, as well as the intranetNTPDservers, and other machines do time synchronization with this service. 650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/57/FC/wKioL1Sl4kbg5vAhAADo9wtkxQY205.jpg "title=" 1.jpg " alt= "Wkiol1sl4kbg5vahaado9wtkxqy205.jpg" style= "padding:0px;margin:0px;vertical-align:top;border:none;"/>1, NTP time synchronizat
the case where the NTPD parent server is unavailable, NTPD simulates the native clock service as a superior NTP server, Address using loopback 127.127.1.0, after a few minutes of service startup, ntpd updated the clock from 127.127.1.0, set a valid stratum, and after the client receives, the time is updated successfully.Second, install the NTP packageCheck that the NTP
Build an NTP server in Linux
BackgroundWhen there are too many servers, it is a big problem whether the time is accurate or not. Although this problem is always ignored, it is necessary to unify the time. The following describes how to configure the Linux time server in the LAN.
For example, if the IP address range is
Configuring NTP servers under LinuxFirst, preface:Default NTP service port:Udp/123The NTP working mode configured in this article:Using the Client/server method, this method is applicable to a time server receiving the time information of the upper time server and providing time information to the downlevel users.Secon
. Check the start Port: netstat-tlunp | grep ntp 10. Check whether the synchronization with the upper-layer server is successful (it will be connected to the upper-layer server after about 15 minutes ): ntpstat or ntpq-p 11: manually check the server. If the error does not exceed 1000 seconds, the service will automatically stop: date MMDDHHMMCCYY. SS # Set the time. Format: Month, month, day, hour, minute, and year. seconds/etc/init. d/ntpd stop # st
The Linux Combat Deployment series of NTP server----theory to introduce the concept of time and the principles of NTP, this blog will bring you to deploy a production environment to achieve simple load balancing and highly available NTP server.
Simple architecture Diagram:
Environment:
CentOS6.4 x86_64
AutoKey # Multicast Server#multicastclient 224.0.1.1 # Multicast Client#manycastserver 239.255.254.254 # Manycast Server#manycastclient 239.255.254.254 AutoKey # manycast Client# undisciplined Local Clock. This was a fake driver intended for backup# and when no outside source of synchronized time is available.Server 127.127.1.0 # Local clock #外部时间服务器不可用时, as time service in native timeFudge 127.127.1.0 stratum #设置本地时钟源的层次为10 so that if the NTPD service gets time from the local clock source, NTP
In Centos6.3, the ntp time server-linux Enterprise Application-Linux server application information is implemented. For more information, see the following section. Network Time Protocol (NTP) is a standard Internet Protocol used for Time synchronization on the Internet. NTP
Linux and cloud Computing--the second phase of Linux Server SetupThe first chapter: NTP Server Setup650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/84/7C/wKiom1eR3EWj8CJjAAECGMnPQ_I264.jpg-wh_500x0-wm_3 -wmp_4-s_2524553483.jpg "title=" server. jpg "alt=" wkiom1er3ewj8cjjaaecgmnpq_i264.jpg-wh_50 "/>1.NTP Ser
Client#broadcast 224.0.1.1 AutoKey # Multicast Server#multicastclient 224.0.1.1 # Multicast Client#manycastserver 239.255.254.254 # Manycast Server#manycastclient 239.255.254.254 AutoKey # manycast Client# undisciplined Local Clock. This was a fake driver intended for backup# and when no outside source of synchronized time is available.Server 127.127.1.0 # Local clock #外部时间服务器不可用时, as time service in native timeFudge 127.127.1.0 stratum #设置本地时钟源的层次为10 so that if the NTPD service gets time from
The/etc/linux ntp.conf system-config-date network Time Protocol (Linux NTP, web-hour protocol) is used to synchronize all of its client clock services. The Linux NTP server synchronizes the clock of the local system with a common Linux
zone first, with this command
Cp/usr/share/zoneinfo/asia/shanghai/etc/localtime
Then, restart the NTP service again, and the time is right.Intranet, the configuration of all servers is as follows:-----------------------------------------------------------------------------------------------[Email protected] ~]# CRONTAB-E#输入下面内容, save exit full wq!XX */1 * * * root/usr/sbin/ntpdat
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 t
the 123 port of the NTP service is already in use: Execution: ps -ef | grep ntpd can see that the NTP process has also started By default, NTP is updated from an extranet time server, and is used in the cluster as long as all server time in the cluster is consistent, so one server is configured as a time server, the other server is the client of this time ser
2015.8.30NTP serverNTP server (Network time Protocol), is used to do LAN server synchronization, to ensure that the local area network server and time server consistency, some applications to the real-time requirements of the application must be unified timeThere are also many time servers on the Internet, pool.ntp.org (official NTP time server)The NTP server nee
capture messageNoquery: Reject BTODQ/NTPDC QueryServer: Add settings for upper-level hosts or add as NTP servers on the InternetThe annotations in the configuration file are also very clear.(This figure is just another example)
add firewall rules and start NTP service #iptables –A input–p udp–i eth0–s 10.0.7.0/24–dport 123–j ACCEPT #systemctl start
On the basis of the Linux system after installation--based on CentOS (5.8/6.4)--we mentioned how to automatically update the server time at timed intervals. Also mentioned, when the number of intranet machines, if all go to the public network NTP server synchronization time is there will be delay. Of course, this is not just the only meaning of deploying an NTP s
1, install NTP service, to use time synchronization, then the server and client need to use the following command to install the NTP package
[root@5201351 ~]# Yum Install ntp-y
2, if only as a client, the configuration can be very simple, edit the/etc/ntp.conf file, comment out the default for the following default 4 lines
Plus the IP address or dom
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.