How to change the system language of centos7 to simplified Chinese

How to change the system language of centos7 to simplified Chinese

illustrate

When you install the system yourself, you can usually customize the system language. However, cloud servers are usually pre-installed images with English as the default system language, which may be difficult for beginners to understand. Here I will briefly talk about how to change the system language of centos7 to Chinese.

Modify centos7 system language

View the current language pack

locale

View the language packs that the system has

locale -a

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

Install the Simplified Chinese language pack

yum install kde-l10n-Chinese

Set to Chinese

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

LANG="zh_CN.UTF-8" #Change to Chinese LANG="en_US.UTF-8" #Change to English

To make permanent changes, you need to write the configuration into the file

Method 1

vi /etc/locale.conf
##Add the following content to the first line, set Chinese LANG=zh_CN.UTF8

Method 2

localectl set-locale LANG=zh_CN.UTF8

other

Change the time zone to Shanghai, Asia

ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

When checking IP, bash: ifconfig: command not found solution

yum install net-tools ##This is usually not installed

This is the end of this article about how to change the system language of centos7 to simplified Chinese. For more related centos7 simplified Chinese content, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed explanation of terminal input Chinese settings under CentOS7
  • Basic operation tutorial of files and permissions in centos
  • Solution to the error of inserting Chinese characters into MySQL under centOS7
  • Chinese file names display garbled characters in CentOS
  • How to install Chinese fonts in Centos6

<<:  Example of how to achieve ceiling effect using WeChat applet

>>:  Resolving MySQL implicit conversion issues

Recommend

HTML input box optimization to improve user experience and ease of use

In order to improve user experience and ease of us...

Pure CSS to achieve cool neon light effect (with demo)

I have recently been following the CSS Animation ...

Detailed explanation of mysql5.6 master-slave setup and asynchronous issues

Table of contents 1. MySQL master-slave replicati...

Javascript destructuring assignment details

Table of contents 1. Array deconstruction 2. Obje...

Detailed explanation of formatting numbers in MySQL

Recently, due to work needs, I need to format num...

Vue implements the function of calling the mobile phone camera and album

This article shares the specific code of Vue to a...

Implementation of one-click TLS encryption for docker remote api

Table of contents 1. Change the 2375 port of Dock...

HTML elements (tags) and their usage

a : Indicates the starting or destination positio...

Example code for implementing page floating box based on JS

When the scroll bar is pulled down, the floating ...

A very detailed explanation of Linux C++ multi-thread synchronization

Table of contents 1. Mutex 1. Initialization of m...

MySQL insert json problem

MySQL 5.7.8 and later began to support a native J...

Apache Spark 2.0 jobs take a long time to finish when they are finished

Phenomenon When using Apache Spark 2.x, you may e...