无限星辰工作室-客户无限互联网动力之源

标题: LC_CTYPE: cannot change locale 故障解决(centos 7) [打印本页]

作者: crx349    时间: 2020-1-4 02:24
标题: LC_CTYPE: cannot change locale 故障解决(centos 7)


故障:
ssh登录时报错
  1. -bash: warning: setlocale: LC_CTYPE: cannot change locale (zh_US.UTF-8): No such file or directory
  2. -bash: warning: setlocale: LC_COLLATE: cannot change locale (zh_US.UTF-8): No such file or directory
  3. -bash: warning: setlocale: LC_MESSAGES: cannot change locale (zh_US.UTF-8): No such file or directory
  4. -bash: warning: setlocale: LC_NUMERIC: cannot change locale (zh_US.UTF-8): No such file or directory
  5. -bash: warning: setlocale: LC_TIME: cannot change locale (zh_US.UTF-8): No such file or directory
复制代码


解决:
  1. vi /etc/locale.conf
复制代码

加入:
  1. LC_CTYPE="zh_CN.utf8"
  2. LANG="zh_CN.utf8"
复制代码


保存。
重新ssh连接,问题解决




欢迎光临 无限星辰工作室-客户无限互联网动力之源 (https://xmspace.net/) Powered by Discuz! X3.4