Debian CentOS修改时区

2,563次阅读
没有评论

Debian CentOS 修改时区
Debian 修改时区:

dpkg-reconfigure tzdata

CentOS 修改时区:

timedatectl set-timezone Asia/Shanghai
1. 首先查看当前语言环境
env | grep LANG

2. 开始第一步

export LANG=en_US.UTF-8
注意 en 表示语言,US 表示国家,UTF- 8 表示编码

第二步
dpkg-reconfigure locales
reboot

正文完
 0
评论(没有评论)