CentOS7修改操作系统语言方法

Posted ycookiee

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS7修改操作系统语言方法相关的知识,希望对你有一定的参考价值。

一、CentOS7.0 
1、修改为中文

# localectl  set-locale LANG=zh_CN.utf8

2、修改为英文

# localectl  set-locale LANG=en_US.UTF-8

二、CentOS6.5

1、修改为英文

# echo ‘LANG=en_US.UTF-8‘ >>/etc/profile
# source /etc/profile
# su -l

2、修改为中文

# echo ‘LANG=zh_CN.utf8‘ >>/etc/profile
# source /etc/profile
# su -l
 
localectl 这个命令的作用?
source 这个命令的作用?
 

以上是关于CentOS7修改操作系统语言方法的主要内容,如果未能解决你的问题,请参考以下文章