Step 1: Edit the system configuration file vim/etc/sysconfig/i18n to change the original configuration in the LANG = & quot; quotation marks into this zh_CN.UTF-8 to save and exit. Step 2: modify the default language environment variable value of the CentOS runtime environment vim/etc/profile to find the exportLANG line and write it before the export
Step 1:
Edit system configuration file
Vim/etc/sysconfig/i18n
In the original configuration, change the LANG = "" inside the quotation marks to this zh_CN.UTF-8
Save and exit.
Step 2:
Modify the default language environment variable value of the CentOS runtime environment
Vim/etc/profile
Find the export LANG line and write it before the export
LANG = "zh_CN.UTF-8"
In general, there is already a LANG = "GB or something". if it is changed directly to the quotation marks, it will be o.
Want to modify to other, just replace the zh_CN.UTF-8 with the corresponding on the line