nano ~/.bashrc
 
 
export LC_ALL=en_US.UTF-8  
export LANG=en_US.UTF-8

保存退出 ,重新登录终端让修改生效!


原文链接: nano在centos7下中文乱码 作者: lixusocool