问题描述 在连接Centos7时出现告警提示 bash: warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8) /bin/sh: warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8) 原因分析 系统字符集配置问题 解决方案 查看可用的语言包,确保存在 zh_CN.utf8 locale -a | grep 'zh_CN*' 若 zh_CN.utf8 不存在则先安装 yum groupinstall "Chinese Support"