1. 程式人生 > >同步Linux中的系統時間

同步Linux中的系統時間

#手動同步時間

date -s “2018-8-5 00:00:00”

#網路同步時間

安裝ntpdate軟體用於效驗時間

yum install ntpdate

輸入指令進行效驗時間,更新系統時間,使系統時間一致

ntpdate cn.pool.ntp.org

 

 

然後輸入chkconfig ntpdate on使系統進行自動效驗