CENTOS通过SSH远程连接中文显示乱码解决方法

来源:互联网 发布:蛞蝓和蜗牛的关系 知乎 编辑:程序博客网 时间:2024/05/29 16:19
 

[root@ns2 maxingfei]# cd /etc/sysconfig/           #########打开目录######
[root@ns2 sysconfig]# ls
apmd         firstboot         keyboard         raid-check
apm-scripts  grub              krb524           rawdevices
atd          hidd              kudzu            readonly-root
auditd       hsqldb            mkinitrd         rhn
authconfig   httpd             modules          saslauthd
autofs       hwconf            netconsole       selinux
bluetooth    i18n              network          sendmail
cbq          init              networking       smartmontools
clock        ip6tables         network-scripts  syslog
conman       ip6tables-config  nfs              system-config-securitylevel
console      iptables          nspluginwrapper  system-config-users
cpuspeed     iptables-config   ntpd             udev-stw
crond        irda              pand             vncservers
desktop      irqbalance        pm-action        wpa_supplicant
dund         kernel            prelink
[root@ns2 sysconfig]# cp i18n i18n.bak      #########备份一下######
[root@ns2 sysconfig]# vi i18n               #########BSD使用ee编辑器######

#######更改为如下内容:##########

LANG="zh_CN.GB18030"
LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"
SUPPORTED="zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="lat0-sun16"

保存退出,不需要重启就可生效

 

原创粉丝点击