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
.asia.pool.ntp.org
The time spent #记录上次的NTP server joins the upper NTP server
Driftfile/etc/ntp/drift
#设置默认策略为允许任何主机进行时间同步
Restrict default Ignore
#设置允许访问此时间服务器的时间服务的IP地址
#根据自己实际情况配置
Restrict 127.0.0.1
Restrict 192.168.10.2 # Specify a machine time synchronization
Restrict 192.168.0.0 mask 255.255.255.0 #允许192.168.0.0/254 in-subnet host
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 ntpd
On
to write time to the BIOSHwclock-wIf you want to schedule time calibration, you can use the Crond service to do it regularly.Edit/etc/crontab FileAdd the following line:8 * * * root/usr/sbin/ntpdate 10.1.3.51; /sbin/hwclock-w where 10.1.3.51 is the IP address of the NTP serverThen restart the Crond serviceSystemctl Restart CrondIn this way, every day the Linux system will automatically perform network time
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
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 needs to turn on 123 port (UDP) to view the open
. asia.pool.ntp.orgServer1. asia.pool.ntp.orgServer2. asia.pool.ntp.orgThe time spent #记录上次的NTP server joins the upper NTP serverDriftfile/etc/NTP/Drift#设置默认策略为允许任何主机进行时间同步RestrictdefaultIgnore#设置允许访问此时间服务器的时间服务的IP地址#根据自己实际情况配置Restrict127.0.0.1 Restrict192.168.10.2# Specify a machine time synchronizationRestrict192.168.0.0Mask255.255.255.0#允许192.168.0.0/254 in-
Linux NTP Server ConfigurationThe first step, check whether the installation NTPRun the following command:Rpm-qa | grep NTPIf you have the following output:ntp-4******** indicates that an NTP server is installedIf not, install it.Step two, modify NTP the configuration fileVi/etc/ntp.conf①, first configuration: Allows
-6 default Kod nomodify notrap nopeer noquery# Permit All access over the loopback interface. This could# is tightened as well, but to does so would effect some of# the administrative functions.Restrict 127.0.0.1Restrict-6:: 1# Hosts on local network is less restricted.Restrict 10.1.3.0 mask 255.255.255.0 nomodify notrap//Definition only 10.1.3.0 of Intranet Access Server21# Use public servers from the Pool.ntp.org project.# Please consider joining the pool (http://www.pool.ntp.org/join.html).#s
Linux NTPServer(time server)Date–s 22:12:30 # Set timeleap seconds 7 months 1 days : minutes at this time, to turn off the NTP service1.1.Software InstallationRequired software: installed by defaultYum Install Ntp-yntpdate-4.2.6p5-1.el6.centos.i686Fontpackages-filesystem-1.41-1.1.el6.noarchntp-4.2.6p5-1.el6.centos.i6861.2.ConfigurationNtpConfiguration file:Vi/etc
First, the NTP principle of the timeThe direction of NTP synchronization is to propagate from a node with a smaller stratum value to a larger node, and if an NTP client receives a stratum larger than itself, the NTP client thinks
Tags: Linux NTP linux system NTP service1, installationNTPyum-y Install NTP (Direct Yum installation can be)2 , Modify The configuration of the ntp.conf1 ) vim/etc/ntp.conf① Configuration method One: only allow The client of t
Article Title: Configure NTP in Linux to set up a local time server. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Configure NTP to se
NTP Service setup under Linux(CentOS)1. installationCentOS NTP service. If you are unsure whether you have installed ntp The package can be ordered rpm – QA|GREPNBSP;NTPNBSP; check it out. If not installed, you can use the command YUMNBSP;INSTALLNBSP;NTP Instal
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 str
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, the installation of NTP service, to use time synchronization, then the server and the client need to use the following command to install the NTP package[Email protected]5201351yuminstall ntp-y2, if only as a client, the configuration can be very simple, edit the/etc/ntp.
into:Software clock: Linux own system time, starting from January 1, 1970 to record the time parameters. Modified with date.Hardware clock: The actual time recorded by the computer system in the BIOS, which is the time recorded by the hardware. Modified with Hwclock.Hwclock-r: Read the time parameters of the BIOSHwclock-w: Writes the current system time to the BIOS.Network School-time Method:1. Manual Time: Ntpdate ntp_server2. Automatic School Hours
Test machine: CentOS 6.5ipaddr=192.168.1.229Rqm-qa |grep NTPNot installed, first installedYum-y Intall NTPConfiguration file LocationVim/etc/ntp.confDriftfile/var/lib/ntp/drift #这个代表上层服务与本机主板时钟之间时间差别记录在这个文件里Restrict #管理权限Restrict default kod nomodify notrap nopeer noquery #拒绝IPV4用户restrict-6 default kod nomodify notrap nopeer noquery #拒绝IPV6用户The parameters are as follows:Ignore: Turn off all NTP Online Ser
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 f
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.