Featured image of post 设置 Linux 的时区为北京时间

设置 Linux 的时区为北京时间

避免 date 的时间看起来怪怪的

替换 localtime

1
sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

修改时区

/etc/timezone 文件的内容修改为 Asia/Shanghai

1
echo "Asia/Shanghai" | sudo tee /etc/timezone
Built with Hugo
主题 StackJimmy 设计