输入sudo tzconfig
假如命令不存在,请输入:
stdo su
dpkg-reconfigure tzdata
选择Asia 选择shanghai
就可以了。
网上同步时间
1.安装ntpdate工具
#studo apt-get install ntpdate
2.设置系统时间与网络时间同步
#ntpdate cn.pool.ntp.org
3.将系统时间写入硬件时间
#hwclock-systohc
输入sudo tzconfig
假如命令不存在,请输入:
stdo su
dpkg-reconfigure tzdata
选择Asia 选择shanghai
就可以了。
网上同步时间
1.安装ntpdate工具
#studo apt-get install ntpdate
2.设置系统时间与网络时间同步
#ntpdate cn.pool.ntp.org
3.将系统时间写入硬件时间
#hwclock-systohc