安裝必要的packages
# yum install ntp ntpdate ntp-doc

設定開機就啟動NTP Daemon
# systemctl enable ntpd

系統時間與pool.ntp.org的NTP server做校時
# ntpdate pool.ntp.org

啟動系統的NTP Daemon
# systemctl start ntpd

設定要校時的NTP server
# vim /etc/ntp.conf
-----------------------------------
......
server 0.rhel.pool.ntp.org
server 1.rhel.pool.ntp.org
server 2.rhel.pool.ntp.org
......
-----------------------------------
以上紅字可以修改成您要指定的NTP Server.

arrow
arrow
    全站熱搜

    dreamtails 發表在 痞客邦 留言(0) 人氣()