1. 程式人生 > >ubuntu伺服器時間同步

ubuntu伺服器時間同步

安裝ntpdate工具

# sudo apt-get install ntpdate

設定系統時間與網路時間同步

# ntpdate cn.pool.ntp.org

將系統時間寫入硬體時間

# hwclock --systohc