To ensure consistency within the cluster, the NTP time synchronization server needs to be configured, using the China National Time Service Center clock synchronization server, p address 210.72.145.44. So each machine in the cluster is synchronized with the 210.72.145.44 clock server. The configuration steps are as follows: 1) Edit/etc/sysconfig/ntp, add "-X" to Ntpd_options, and the results are as follows
service;#/usr/local/ntp/bin/ntpd-c/etc/ntp.conf-p/tmp/ntpd.pidAnd then...And then you wait, like, 15 minutes or so,Use commands on other virtual machines after a period of time# ntpdate 172.16.249.135 can synchronize time;1, where the IP is the IP as the time server2, recommended more than 20 minutes in sync, otherwise it will prompt "No server suitable for synchronization found" this error;###############
symmetric key cryptography.Keys/etc/ntp/keys# Specify the key identifiers which is trusted.#trustedkey 4 8 42# Specify the key identifier to use with the NTPDC utility.#requestkey 8# Specify the key identifier to use with the NTPQ utility.#controlkey 8# Enable writing of Statistics records.#statistics clockstats cryptostats loopstats peerstats
5. Start the NTP service and join the bootService ntpd
Configure NTP time synchronization on Linux with a break operation step, sorted as follows:
1. Install packages (on server and client):
The code is as follows
Copy Code
Yum Install NTP
2. Server-side configurationFor example:First, the server IP address is set to: 192.168.146.110
Modifying the NTP configuration file
NTP Service time synchronizationTurn off firewalls and SELinux or turn on all firewall services[Email protected] ~]# firewall-cmd --set-default-zone=trusted NTP service[[email protected] ~]# yum–y install NTP[email protected] ~]# cat /etc/ntp. conf //Modify configuration file
//define native
here 5 , but in fact I am not sure this to set, I myself in the process of the test found that this is not set as if it is not synchronized, so I set up, the network other people said that the configuration does not have this step. The original default value is 360000 (decimal).4, set HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\MaxNegPhaseCorrection to FFFFFFFF (formerly D2F0 HexadecimalSet HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\MaxPosPhaseCo
/ntpd.pid"Sync_hwclock=yes# change him to Yes! This will change the BIOS time as well!
1.3. Ports and ServicesPort 123Service ntpd Restart1.4.Firewall Configuration1.5.Setting the time zoneVi/etc/sysconfig/clock# The time zone of the system is defined bythe contents of/etc/localtime.# This file was only for evaluation by System-config-date,do not rely on its# contents elsewhere.Zone= "Asia/shanghai"/usr/share/zoneinfo/ all time zone files/etc/localtime1.6.Client Synchronization[[email
Configure NTP service and Intranet server time synchronization in centos7.2Network Time Protocol (NTP) is a standard Internet Protocol used for Time synchronization on the Internet. NTP is used to synchronize computer time to certain time standards. The current Time standard is Universal Time Coordinated ). The primary developer of
Network time Protocol (NTP) is also a new exam requirement for RHCE. Study time also by the way to review how to set up Linux time, now take out and share with youSetting up an NTP server is not difficult, but NTP itself is a very complex protocol. Here's just a brief introduction to the practical approachLike last time, the following experiments were run on RHEL
This experiment uses 2 Rhel 6.3, of which 192.168.1.131 is the service side; 192.168.1.132 is the client. Server-side configuration allows only 192.168.1.0 network segments to connect to servers for time synchronization1. Install the NTP service (client and server side)# yum-y Install ntp# Rpm-qa | grep ntpfontpackages-filesystem-1.41-1.1.el6.noarchntpdate-4.2.6p5-5.el6.centos.4.x86_ 64ntp-4.2.6p5-5.el6.cen
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
NTP Server: Network TimeprotocolBIOS the intrinsic characteristics of the internal chip can easily cause BIOS Time and UTC There are differences in global standard time. Time synchronization (Synchronize) is an effective way to avoid the time skew caused by the host's long running time. NTP principle:
1. NTP server open listening port number 123
About NTPNTP ( networktime Protocol UTC 0.1ms In most places on the Internet its accuracy can be achieved 1-50ms . NTP The server is using NTP the protocol provides time synchronization services. NTP Server InstallationView system comes with NTP[Email protected] ~]# Rpm-qa ntpntp-4.2.6p5-5.el6.centos.x86_64If
time synchronization server, let other clients synchronize5, the same first step is also required to install the NTP service, as the NTP server, we need to add those IP can be time synchronization, here edit/etc/ntp.conf192.168. 0.3 // Add this after the default restrict 127.0.0.1 192.168. 0.0 255.255. 255.0 nomodify notrap // can also be added in this format6
The computer's system time is generated by a fixed oscillation frequency in the quartz crystal oscillator circuit in the computer.Date View current time zoneVim/etc/sysconfig/clock Modifying the time zone configuration fileZone= "America/new_york"#改为Zone= "Asia/shanghai"cover/etc/localtimecp-a/usr/share/zoneinfo/asia/shanghai/etc/localtimeCp:overwrite '/etc/localtime '? YDate 111317402016 Modify system timeHwclock-w synchronizing system time to hardware timeRpm-qa |grep
0x00 background
Two days ago, the heartbleed fat man published an article about NTP-based reflection and amplification attacks.
I wrote another article related to NTP because I didn't mention some of the above, or I didn't make it clear enough. You are welcome to leave a comment and I will try again for improvement.
Glossary:
Ntp server: the
The NTP server----operation of the Linux real-World Deployment series explains how to deploy a load-balanced and highly available NTP server under a simple architecture. Next, we need to understand the maintenance of the technology, so as to better escort the company's business AH.
NTP server maintenance is divided into 2 parts, the first part of day-to-day mana
How to build an NTP server in CentOS
The Network Time Protocol (NTP) is used to synchronize the system time of different hosts on the network. All Hosts you manage can synchronize their time with a specified time server called NTP server. On the other hand, an NTP server synchronizes its time with any public
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.