网上同步时间:
1. 安装ntpdate工具
# sudo apt-get install ntpdate
2. 设置系统时间与网络时间同步
# ntpdate cn.pool.ntp.org
3. 将系统时间写入硬件时间
# sudo hwclock --systohc
cn.pool.ntp.org是位于中国的公共NTP服务器,用来同步你的时间。如果第2部出错,请输入
# service ntp stop
1. 安装ntpdate工具
# sudo apt-get install ntpdate
2. 设置系统时间与网络时间同步
# ntpdate cn.pool.ntp.org
3. 将系统时间写入硬件时间
# sudo hwclock --systohc
cn.pool.ntp.org是位于中国的公共NTP服务器,用来同步你的时间。如果第2部出错,请输入
# service ntp stop