Tags: 1.0 technical Pictures Add Firewall boot start ODA watch tarPre-configuration: Turn off the firewall, configure the HOSTS,SSH password-free login1. Select the standard for synchronization, I am using hadoop002 (set to the current time) as the synchronization standard, hadoop003 (Time is March 2018 21, set with Date-s) and hadoop004 (March 2018 21) with which to keep in syncSee if
public static DateTime Getnetworktime (){Default Windows time ServerConst string ntpServer = "1.cn.pool.ntp.org";NTP message size-16 bytes of the digest (RFC 2030)var ntpdata = new byte[48];Setting the Leap Indicator, Version number and Mode valuesNtpdata[0] = 0x1B; LI = 0 (no warning), VN = 3 (IPv4 only), mode = 3 (Client mode)var addresses = Dns.gethostentry (ntpServer). AddressList;The UDP port number as
socket.Receive(ntpData);33 socket.Close();34 35 //Offset to get to the "Transmit Timestamp" field (time at which the reply 36 //departed the server for the client, in 64-bit timestamp format."37 const byte serverReplyTime = 40;38 39 //Get the seconds part40 ulong intPart = BitConverter.ToUInt32(ntpData, serverReplyTime);41
You need to set up a time synchronization server in the LAN to unify the system time of each client and server. On the Internet, most of the NTP servers are indeed based on Linux. search, experiment, and summary: Write an article using the w32time service that comes with win
use the UTC clock configuration file/etc/localtime the time profile on the local side, the timezone specified in the clock will be/usr/share/zoneinfo/Copy the time profile in the/etc/localtimeCommon directives:/bin/date for the modification and display of Linux software time/sbin/hwclock is used to modify and display the BIOS
In an Oracle 10G environment, if you want to build a cluster, you need to synchronize the clock, which requires an NTP server.1, on the timing system machine, edit/etc/ntp.confRetrict default NomodifyRestrict 127.0.0.1Server 127.127.1.0Fudge 127.127.1.0 Stratum 8Driftfile/var/lib/ntp/driftBroadcastdelay 0.008Then restart the NTPD serviceService NTPD Restart2, on
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 clo
sudo nano/etc/ntp.confAnd then find
# pool.ntp.org maps to about low-stratum NTP servers. Your Server would# Pick a different set every time it starts up. Please consider joining the# Pool: Server 0.debain.pool.ntp.org IburstServer 1.debain.pool.ntp.org IburstServer 2.debain.pool.ntp.org IburstServer 3.debain.poo
NTP server1. Enter Rpm-qa|grep NTP to see if an NTP server is installed2. If the Yum-y install NTP installation is not installed3. Modify/etc/ntp.conf Add the original server annotated local s
1. First install NTP[email protected]/]# Yum install ntp-y2. Modify the NTP configuration file to add the network location of the NTP server/etc/ntp.conf# For more information on this file, see the Man pages# ntp.conf (5), NTP_ACC (5), Ntp_auth (5), Ntp_clock (5), Ntp_misc (
A. Environment Preparationxuegod63.cn Service Sidexuegod64.cn Clienttwo. Server-side configuration:1. Installing the NTP service[[email protected] ~]# Yum install-y NTP2. turn on the NTPD service and set the boot up[[Email protected] ~]# service NTPD startStarting ntpd: [OK][Email protected] ~]# chkconfig ntpd on3. To see if the port is started[Email protected] ~]# netstat-anput| grep 123UDP 0 0
An error is displayed when you use RHEL as an NTP server to update ntpdate on the server. My configuration is as follows: restrict127.0.0.1restrict-6: 1restrict10. Conflict
An NTP server is built using RHEL. An error is displayed when ntpdate is updated on the
Experimental environment:
Linux CentOS 5.5 Two units
IP Address:
ntpserver:192.168.186.129
ntpclient:192.168.186.152
Test requirements:
Install the NTP server and deploy the implementation to allow the client to synchronize its practices normally. and analysis of the fault handling encountered during the implementation of the project.
Implementation process:
NtpServer-side deployments.
1, first che
First step to install NTPYum Install NTPSecond step, find the closest time synchronization serverHttp://www.pool.ntp.org/zone/asiaThe third edition of/etc/ntp.confServer 127.127.1.0 iburst # Local Clock when the external time server is unavailable, use the native time as the standard for the
Configure NTP Automatic Update timeInstalling the Ntpdate Program
shell># yum–y Install Ntpdate
Use Crontab to set the system to synchronize time with the NTP server 0:00 per dayshell># crontab–e
0 0 * * * ntpdate your_ntp_server_domain_name or YOUR_NTP_SERVER_IP_ADDR
--date= "06/18/14 14:55" (Month/day/year: minutes: seconds)The hardware clock is synchronized with the system clock:# Hwclock--hctosys or # clock--hctosys? HC represents the hardware time, SYS represents the system time, i.e. the system clock is synchronized with the hardware clocksystem clock and Hardware clock synchronization:# Hwclock--SYSTOHC or # clock--SYSTOHC? Synchronize the hardware clock with the
REDHAT7 Setting up NTP (Time synchronization)Installation:# yum Install NTPStart:# Systemctl Start ntpd# Systemctl Enable NTPDTo view synchronization:# ntpq-pOpen firewall:# Firewall-cmd--permanent--ADD-SERVICE=NTPNTP server is now completeClient synchronizes from NTP serverInstallation:# yum Install NTPTo modify the c
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
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.