Centos7 modify the system language to simplified Chinese

Description#

Generally, you can customize the system language when you install the system yourself. However, cloud servers are generally installed mirrors, and the default system language is English. For beginners, there may be computer vocabulary that they may not understand. Here is a brief talk about how centos7 changes the system language to Chinese.

Modify centos7 system language#

  1. View the current language pack of the department
locale

Check that the system has language packs

locale -a
  1. Install Simplified Chinese Language Pack
yum install kde-l10n-Chinese
  1. Set to Chinese
    Temporary modification, the previous settings will be restored after restarting the server
LANG="zh_CN.UTF-8"    #Modified to Chinese
LANG="en_US.UTF-8"    #Modified to English

For permanent modification, write the configuration into the file
method one)

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

Method Two)

localectl  set-locale LANG=zh_CN.UTF8

other####

Change the time zone to Asia Shanghai

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

When viewing ip, bash: ifconfig: command not found solution

yum install net-tools      ##Generally this is not installed

Recommended Posts

Centos7 modify the system language to simplified Chinese
How to modify the hostname on CentOS 8
01 CentOS 7.6 switch system language
How to modify the CentOS server time to Beijing time
How to turn the language of Ubuntu into Chinese? ?
How to set or modify the time zone in CentOS 8
CentOS7 modify the network card name
Modify CentOS server time to Beijing time
centos7 cannot connect to the external network
Modify the software default source to Tencent source
CentOS7 system yum way to install MySQL5.7
How to modify the hostname on Ubuntu 20.04
How to change the CentOS server time to Beijing time
Summarize the knowledge points of Centos7 system reinforcement
The easiest way to install Chrome on CentOS 6
Do you know the CentOS system startup process?
How to install Linux CentOS 7.7 system through VMware
Modify the default encoding of mysql5.6 under CentOS7
centos system management
Modify CentOS hostname
Remember the reason why Centos modify the language environment variable $LANG does not take effect
Centos7 uses Ansible to install Chinese fonts in batches
The tutorial for upgrading from Centos7 to Centos8 (detailed graphic)
Modify the default root password of the Ubuntu operating system
The difference between CentOS and Ubuntu in Linux system
How to modify time zone and time in ubuntu system