locale区域语言设置

查看当前配置

# 默认配置
[maintain@localhost:~]$ locale LANG=zh_CN.utf8 LC_CTYPE="zh_CN.utf8" LC_NUMERIC="zh_CN.utf8" LC_TIME="zh_CN.utf8" LC_COLLATE="zh_CN.utf8" LC_MONETARY="zh_CN.utf8" LC_MESSAGES="zh_CN.utf8" LC_PAPER="zh_CN.utf8" LC_NAME="zh_CN.utf8" LC_ADDRESS="zh_CN.utf8" LC_TELEPHONE="zh_CN.utf8" LC_MEASUREMENT="zh_CN.utf8" LC_IDENTIFICATION="zh_CN.utf8" LC_ALL=
# 当前配置
[maintain@localhost:~]$ localectl status System Locale: LANG=en.US.utf8 VC Keymap: us X11 Layout: us [maintain@localhost:~]$ localectl list-locales | grep en.US en_US en_US.iso88591 en_US.iso885915 en_US.utf8

变更区域

[maintain@localhost:~]$ sudo localectl set-locale  LANG=en_US.utf8
[maintain@localhost:~]$ more /etc/locale.conf 
LANG=en_US.utf8
[maintain@localhost:~]$ 

 

posted @ 2019-05-30 15:30  Fatt  阅读(1565)  评论(0编辑  收藏  举报