Method One:
Modify the/etc/sysconfig/i18n file
Change the lang= "en_US" inside to GB2312.
To restart the machine.
Without restarting the method, directly
# lang= "GB2312"
And then we can.
Modify i18n just to restart the active
Method Two:
#vi ~/.bash_profile
Lang=zh_cn. GB18030
Language=zh_cn.gb18030:zh_cn.gb2312:zh_cn
Export LANG LANGUAGE
This will be able to input and display the Chinese in the terminal, and the shell script in the original Chinese display garbled problem also solved
Method Three:
Modify/etc/sysconfig/i18n
The 1th sentence lang= "ZH_CN. UTF-8 "changed to Lang=" ZH_CN. GB18030 "
Method Four:
Modify/etc/sysconfig/i18n
Language= "Zh_CN.GB18030:zh_CN.GB2312:zh_CN"
Supported= "ZH_CN. GB18030:zh_CN:zh:en_US. Utf-8:en_us:en "
Sysfont= "Lat0-sun16"
Sysfontacm= "8859-15"
Method Five:
[Email protected] ~]# service vsftpd restart
Smoke. VSFTPD 锛 [helicopter ...]
Juan Vsftpd?.. VSFTPD 锛 [Helicopter ...]
[Email protected] ~]# cd/etc/sysconfig/
[email protected] sysconfig]# CP i18n I18n.bak #备份i18n文件
[Email protected] sysconfig]# echo "" >i18n
[[email protected] sysconfig]# vi i18n #加入以下内容
lang= "zh_cn.gb18030"
language= "zh_CN.GB18030:zh_CN.GB2312: ZH_CN "
supported=" ZH_CN. GB18030:zh_CN:zh:en_US. Utf-8:en_us:en "
sysfont=" Lat0-sun16 "
normal Chinese appears after reconnecting
[[email protected] ~]# service vsftpd restart
close vsftpd: [OK]
start vsftpd: for VSFTPD [OK]
http://blog.csdn.net/joe_007/article/details/8812004
Linux shell Terminal Chinese garbled (go)