ssh 终端输入(第一个就ok)
export LANG='UTF-8'
export LC_ALL='zh_CN.UTF-8'
export LC_CTYPE='zh_CN.UTF-8'
这个只管一次
1.修改 /etc/locale.conf (或新建vim /etc/locale.conf
#修改值
LANG="zh_CN.UTF-8"
2.修改 ~/.bashrc
vim ~/.bashrc
#末尾追加:
export LANG='UTF-8'
export LC_ALL='zh_CN.UTF-8'
export LC_CTYPE='zh_CN.UTF-8'
3.使配置生效
source ~/.bashrc