CentOS7.0 - 修改系统语言

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

<code class="hljs vala has-numbering"><span class="hljs-preprocessor"># localectl  set-locale LANG=zh_CN.utf8</span></code><ul style="display: block;" class="pre-numbering"><li>1</li></ul>

2、修改为英文

<code class="hljs vala has-numbering"><span class="hljs-preprocessor"># localectl  set-locale LANG=en_US.UTF-8</span></code><ul style="display: block;" class="pre-numbering"><li>1</li></ul>

二、CentOS6.5

1、修改为英文

<code class="hljs vala has-numbering"><span class="hljs-preprocessor"># echo 'LANG=en_US.UTF-8' >>/etc/profile</span>
<span class="hljs-preprocessor"># source /etc/profile</span>
<span class="hljs-preprocessor"># su -l</span></code><ul style="display: block;" class="pre-numbering"><li>1</li><li>2</li><li>3</li></ul>

2、修改为中文

<code class="hljs vala has-numbering"><span class="hljs-preprocessor"># echo 'LANG=zh_CN.utf8' >>/etc/profile</span>
<span class="hljs-preprocessor"># source /etc/profile</span>
<span class="hljs-preprocessor"># su -l</span></code>

你可能感兴趣的:(CentOS7.0 - 修改系统语言)