Skip to content

校对时区

linux开机后先校对时区

apt-get update -y && apt-get install curl -y
sudo tzselect
//asia
//chia
//1
//1
//替换以前的配置文件
sudo cp /usr/share/zoneinfo/Asia/Shanghai  /etc/localtime
//写入cmos硬件时钟
sudo hwclock --systohc
//查看执行结果
sudo date -R
1
2
3
4
5
6
7
8
9
10
11
12

Released under the CC-BY-SA-4.0 License.