1. View the current system language
Enter echo $LANG to view the currently used system language. Such as
(recommended tutorial: centos tutorial)
2. Check the installed language package
to see if There is a Chinese language pack. You can enter the locale command in the terminal. If there is zh cn, it means that the Chinese language has been installed.
3. If there is no Chinese language, you can download and install the Chinese language package from the Internet.
yum groupinstall chinese-support
4. Modify the system default language
Vi /etc/sysconfig/i18n
(Be careful to restart the system after changing it)
LANG="zh_CN.UTF-8"
5. Restart the system.
Recommended related video tutorials: linux video tutorial
The above is the detailed content of What should I do if Chinese is not displayed under centos system?. For more information, please follow other related articles on the PHP Chinese website!