1.查看系統(tǒng)時區(qū)
date -R
2.?[endif]如果要修改時區(qū),執(zhí)行
sudo tzselect
根據(jù)屏幕內(nèi)容輸入你要的時區(qū)數(shù)字
3.復(fù)制文件到/etc目錄下
sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
sudo apt-get install ntpdate
sudo ntpdate time.windows.com
sudo hwclock --localtime --systohc
修改/etc/timezone,將第一行改為:
Asia/Shanghai