Cài đặt đồng bộ thời gian hệ thống bằng Network Time Protocol (NTP) trên Linux

1) Cài đặt ntp

yum install ntp

 2) Cài đặt server cần update time

nano /etc/ntp.conf

 3)  Chèn server này nếu chưa có

server pool.ntp.org

 4) Khởi động lại ntp

/etc/init.d/ntpd start

 5) Mở port 123 của ntp

sudo iptables -A INPUT -m state --state NEW -p tcp --dport 123 -j ACCEPT

 6) Update lại

ntpdate pool.ntp.org

 

Leave a Reply