Alibabacloud.com offers a wide variety of articles about ntp server configuration in linux, easily find your ntp server configuration in linux information here online.
the command line; Export TZ can be. When the date view time, the system is to find the TZ environment variable, TZ is not set to take the search for/etc/localtime file, so the TZ environment variable settings will overwrite the /etc/localtime file information, but the environment variable settings at the next logon is not valid, To be permanently valid, you can write commands to the/etc/profile file. Time Server Setup
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 time, usually after modifying the system time with date, and then using Hwclock to synchronize to the BIOS./usr/sbin/ntpdate C
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
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
NTP server is used for LAN time synchronization. You can ensure that all servers in the LAN are synchronized with the time server. Some applications require a higher time-to-live nature. Requirements must be unified time, so the configuration of the time server is important.
Configuring NTP to set up the local time server NTP is a protocol used to keep the system and a precise time source at time. in Linux, we can use the Network Time Protocol to keep our system accurate. install: # Yum install NTP or find the ntp rpm package from the installati
Environment:1. NTP server: ip:192.168.4.1972. NTP Client: ip:192.168.4.196My Server System version 6.7 (service side) and 6.4Installation:1, after the new server set up the network,/etc/sysconfig/network-scripts/network card location in this directory. The name of the genera
Synchronization time of ntp server deployment in Centos7
View the time zone list: timedatectl list-timezones | grep AsiaSet China Time Zone: timedatectl set-timezone Asia/Shanghai. After the execution, the time is changed to Beijing time.View Current Time: dateView Current Settings:[Root @ localhost ~] # TimedatectlLocal time: Mon 2017-10-09 16:44:08 CSTUniversal time: Mon 2017-10-09 08:44:08 UTCRTC time: M
Configuration steps:--server-side configuration--1. Select a server as the time synchronization server.2. Run regedit to open Registry Editor.3. Locate the registry key hkey_local_machine\system\currentcontrolset\services\w32time\config\, and in the right window, change the
up the Registry file.
1. Enter the regedit command in the Start menu and open the registry settings screen. At this time, make sure to back up the Registry file.
2. Modify the key values of the following options
HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ W32Time \ TimeProviders \
Enabled in NtpServer is set to 1 to enable the NTP server function.
3. Modify the following key values
HKEY
, enter the regedit command to open the Registry Settings screen, at this time, please make sure to back up the registry file.2. Modify the key values of the following optionsHkey_local_machine\system\currentcontrolset\services\w32time\timeproviders\"enabled" set to 1 in NtpServer, turn on NTP server function3. Modify the following key valuesHkey_local_machine\system\currentcontrolset\services\w32time\confi
the Value data box in edit DWORD value, and then click OK.
Third, to make the configuration immediately effective
1. Quit Registry Editor.
2. At the command prompt, type the following command to restart the Windows time service, and then press Enter:
Program code
net stop W32Time net start W32Time
Four, configure the firewall to allow NTP access
If you need to access the server's
Take the RHCE lab as standard. A simple NTP time server standard configuration is as follows: (Fu) server side: first, modify the system time and write the system time into dateMMDDhhmmYYYY in the hardware time. ss; hwclock-wvim/etc/ntp. confrestrictdefaultnomodifynotrapnoqu
Server-side:1. PackagingSlightly....2. Modify the NTP service configuration fileConfiguration file location:/etc/ntp.confWhat to modify:# Set the IP network segment to synchronize with the server time , the following is the 192.168.x.x machine can synchronize with the serverRestrict 192.168.0.0 mask 255.255.0.0# Set th
Basic configuration fileYou want to configure local time server server 127.127.1.0 must write this# --- GENERAL CONFIGURATION ---server aaa.bbb.ccc.dddserver 127.127.1.0fudge 127.127.1.010# Drift file.driftfile /etc/ntp/driftM
--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 system clockModify the configuration file to
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 installe
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.