centos7 system to solve the garbage problem

Steps:

View the current system's default language

echo $ LANG

View the system libraries Supported languages

locale

If you do not want to set the language need to install it

yum groupinstall chinese-support -y

Modify the configuration file /etc/locale.conf

vim /etc/locale.conf

LANG=en_US.UTF-8

Reload it

source /etc/locale.conf

The terminal can also modify their own

 

 

Note: If you have modified, or re-open the terminal, so remember to look at / etc / profile and /HOME/.bash_profile (eg /root/.bash_profile), see inside there is no configuration LANG =

 

 

Guess you like

Origin www.cnblogs.com/soymilk2019/p/12092997.html