Centos 7 Change System language

Source: Internet
Author: User
Tags i18n locale

Before Aliyun the above application CentOS 7 The default language is English, although said that does not have the big question to see English. Suddenly want to change the system language to Chinese how to change it.

First, use the locale command to see the language configuration. I was originally in English "en_US." UTF-8 ", change then become" ZH_CN. UTF-8 "


I. Interim SOLUTION

Use lang= "ZH_CN. UTF-8 ", this command is implemented, but will return to English when you log in again. This is not a permanent method.

Ii. Changing system parameters

If the system does not have Chinese support, you can download and install the Chinese language pack via the Internet, using the command: Yum Groupinstall chinese-support

Generally speaking on the internet is to modify the/etc/sysconfig/folder inside the i18n this file inside the parameters, but. I did not see this file under the same path as CENTOS7.

After finding data on the Internet, Centos 7 has not used/etc/sysconfig/i18n this file to do the configuration, but instead use/etc/locale.conf to do the language configuration.

Use VIM command to go in, vim/etc/locale.conf

Into the future only a simple sentence lang= "en_US." UTF-8 "This configuration, put" en_US. UTF-8 "Replace with" ZH_CN. UTF-8 "Save exit."

This is a reboot into the system, the system is also the Chinese configuration interface.


Reference articles:

Https://blog.zhengzi.me/224.html

Http://www.viblue.com/wiki/90152001.html


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.