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

Detailed explanation of the pitfalls of mixing npm and cnpm

Table of contents cause reason Introduction to NP...

A complete record of a Mysql deadlock troubleshooting process

Preface The database deadlocks I encountered befo...

Tutorial on how to connect and use MySQL 8.0 in IDEA's Maven project

First, let's take a look at my basic developm...

Implementation of proxy_pass in nginx reverse proxy

The format is simple: proxy_pass URL; The URL inc...

How to install common components (mysql, redis) in Docker

Docker installs mysql docker search mysql Search ...

Vue implements the method of displaying percentage of echart pie chart legend

This article mainly introduces the pie chart data...

Detailed explanation of when javascript scripts will be executed

JavaScript scripts can be embedded anywhere in HT...

js to achieve waterfall flow layout (infinite loading)

This article example shares the specific code of ...

How to choose the right index in MySQL

Let’s take a look at a chestnut first EXPLAIN sel...

How to limit the input box to only input pure numbers in HTML

Limit input box to only pure numbers 1、onkeyup = ...

How to recompile Nginx and add modules

When compiling and installing Nginx, some modules...

How to elegantly implement WeChat authorized login in Vue3 project

Table of contents Preface Prepare Implementation ...

Vue implements a small weather forecast application

This is a website I imitated when I was self-stud...