临时设置日期 sudo date -s 12/12/12
同步网络时间
1.安装ntpdate
工具
sudo apt-get install ntpdate
2.将系统时间与网络同步
ntpdate cn.pool.ntp.org
3.将时间写入硬件
hwclock --systohc
4.查看时间是否已同步
date
临时设置日期 sudo date -s 12/12/12
同步网络时间
1.安装ntpdate
工具
sudo apt-get install ntpdate
2.将系统时间与网络同步
ntpdate cn.pool.ntp.org
3.将时间写入硬件
hwclock --systohc
4.查看时间是否已同步
date