linux時間同步命令

若是尚未安裝ntpdate 請先安裝下載 yum install -y ntplinux

時間同步命令: ntpdate time.windows.comwindows

自動時間同步: 須要配置/etc/crontab文件,實現自動執行任務服務器

讓linux從time.windows.com自動同步時間 vi /etc/crontab 加上一句: 00 0 1 * * root ntpdate -s time.windows.com time.nist.gov 是一個時間服務器.crontab

相關文章
相關標籤/搜索