How to change the language setting in centos to Chinese

王林
Release: 2020-03-17 14:25:17
Original
7196 people have browsed it

How to change the language setting in centos to Chinese

View the current language package of the system

locale
Copy after login

View the language package the system has

locale -a
Copy after login

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

Install the Simplified Chinese language pack

yum install kde-l10n-Chinese
Copy after login

(Recommended tutorial: centos usage tutorial)

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"    #修改为英文
Copy after login

Permanent modification requires writing the configuration into the file.

Method (1)

vi /etc/locale.conf
##加下面内容到第一行,设置中文
LANG=zh_CN.UTF8
Copy after login

Method (2)

localectl  set-locale.UTF8
Copy after login

Related video tutorial sharing: linux video tutorial

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!