中文语言设置
查看当前系统语言
locale
查看当前系统已安装的语言包
locale -a
如果没有 “zh_CN”,则安装中文语言包
yum install langpacks-zh_CN #CentOS apt install language-pack-kde-zh-hans #Ubuntu
方法一
修改配置文件
vim /etc/locale.conf #打开配置文件 LANG=zh_CN.utf8 #把第一行改为此内容
使配置文件生效
source /etc/locale.conf
*方法二(未测试)
localectl set-locale LANG=zh_CN.utf8
时区更改
查看当前时区
timedatectl
修改时区
timedatectl set-timezone Asia/Shanghai
文章评论