Home  >  Article  >  Operation and Maintenance  >  How to set the system language to Chinese in centos system

How to set the system language to Chinese in centos system

王林
王林Original
2020-03-21 16:52:2916398browse

How to set the system language to Chinese in centos system

1. Check the current language package of the system

locale

Check the language package the system has

locale -a

(zh_CN.UTF-8 is Simplified Chinese, if not zh_CN.UTF-8, just install the language package. If it exists, you can set it directly)

(Recommended tutorial: centos usage tutorial)

2. Install the Simplified Chinese language package

yum install kde-l10n-Chinese

3. Set to Chinese

Temporary modification, the previous settings will be restored after restarting the server

LANG="zh_CN.UTF-8"    #修改为中文 
LANG="en_US.UTF-8"    #修改为英文

Permanent modification requires writing the configuration into the file.

Method (1)

vi /etc/locale.conf ##加下面内容到第一行,设置中文.UTF8

Method (2)

localectl  set-locale.UTF8

Related video tutorial recommendations: linux video tutorial

The above is the detailed content of How to set the system language to Chinese in centos system. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn