Solve SSH to linux Chinese garbled

Modify the file method and control by modifying the /etc/sysconfig/i18n file
[root@portal ~]# vi /etc/sysconfig/i18n
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF -8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME= "zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=

After saving the modified file and exiting To take effect, execute the following command to take effect
[root@portal ~]$ source /etc/sysconfig/i18n

 

If you think my article helped you, please buy me a drink! I will be very grateful and insist to help you all more!

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326645689&siteId=291194637