Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

How will synchronize Linux machine to NTP Server (Time Server) ?

user-image
Question ajoutée par Muhammad Anzar , DevOps/DevSecOps Architect , Confidential
Date de publication: 2015/03/17
Roshan Firozkhan
par Roshan Firozkhan , IT System Administrator , Emirates Driving Institute

#/etc/init.d/ntpd restart

#ntpdate

Jerry John
par Jerry John , Devops Engineer , NeST Technologies

1-using #timedatectl set-ntp true

2-chronyd configuration file give entry in format

server servername iburst

Amr Mohamed Abdo Eissa
par Amr Mohamed Abdo Eissa , Senior AIX System Engineer , Data & Transaction Services

Edit  /etc/ntp.conf file

# vim /etc/ntp.conf

then change the enter your server's ip and change the stratum value

server  <ip>     # local clockfudge   <ip> stratum <no>

Rajesh Pant
par Rajesh Pant , System Engineer , Tech Mahindra Limited

For the Basic NTP time synchronize use below steps :1) Stop the ntp service:# service ntpd stop2) Make a copy of the existing ntp.conf file:# cp -pr /etc/ntp.conf /etc/ntp.conf-orig# cp -pr /etc/sysconfig/ntpd /etc/sysconfig/ntpd_orig3) Edit /etc/ntp.conf and /etc/sysconfig/ntpd change the following lines:server xxx.xxx.xxx.xxx prefer# cat /etc/sysconfig/ntpd# Drop root to id 'ntp:ntp' by default.OPTIONS="-u ntp:ntp -p /var/run/ntpd.pid -x"# Set to 'yes' to sync hw clock after successful ntpdateSYNC_HWCLOCK=yes4) Stop the ntp service:# service ntpd start5) Make sure that the hardware clock is in sync to the systema) Execute date command on the node# dateb) Execute hwclock on the node# hwclock

Utilisateur supprimé
par Utilisateur supprimé

Step -1:  yum install ntp.

Step-2: vi /etc/ntp.conf

Step-3:   server0.north-america.pool.ntp.org       server1.north-america.pool.ntp.org       server2.north-america.pool.ntp.org       server3.north-america.pool.ntp.org

Step-4: /etc/init.d/ntpd restart

Step-5: usr/sbin/ntpdate pool.ntp.org

 

More Questions Like This