Linux sunucuları Windows domain controller ile saatlerini eşleştirme

Yes, you can get the Linux machines to sync with the Windows Domain Controller. Here’s how I did this in my environment:

  • sudo apt-get install ntp (for Debian-based systems).
  • yum install ntp (for Red Hat-based systems).

edit the /etc/ntp.conf file

Comment out the existing ntp servers:
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
#server 0.centos.pool.ntp.org
#server 1.centos.pool.ntp.org
#server 2.centos.pool.ntp.org

<<add the fqdn of your server here >>>

Save and exit

restart/start the ntpd

/etc/init.d/ntpd restart

Make sure that the ntpd starts up with server reboot:

chkconfig –levels 2345 ntpd on

force an update:

ntpdate -u <<ip address or fqdn of the domain controller >>

Verify that NTP is running properly:

ntpq -p

That should do it.

No Comments

Post a Comment